Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript #9

Open
eduv2-prod bot opened this issue Mar 20, 2023 · 0 comments
Open

Typescript #9

eduv2-prod bot opened this issue Mar 20, 2023 · 0 comments

Comments

@eduv2-prod
Copy link
Contributor

eduv2-prod bot commented Mar 20, 2023

Task Use Typescript to write reliable Javascript
Conditions Parceljs configured library
Standards
  • Setup Typescript in your Parceljs project
  • Create a type for an array of objects with their values being strings
  • Create a function that takes an array and a number as parameters
  • In that function add the number parameter amount of objects with strings of random characters. Return the array
  • Create an empty array with the array type created
  • Create a new variable calling the function passing in the array
  • console.log the result

Note

  • Add "noImplicitAny": true, to tsconfig.json
  • Please don't use any if you can

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants