Coding task · JavaScript and TypeScript course · Module 6: TypeScript Basics

Practice: Arrays and Tuples in TypeScript

Use array and tuple types to describe dinosaur data.

Task

Define a species array (string[]) and a tuple [string, number] for the dinosaur name and weight.