Skip to content

Typescript #9

Open
Open
@eduv2-prod

Description

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions