Coding task · JavaScript and TypeScript course · Module 1: JavaScript Basics
Practice: Data Types
Create a genetic sample analyzer that will store basic information about DNA samples from different dinosaur species.
Task
Declare three variables describing a DNA sample: the species name (string), the weight in kilograms (number) and whether the dinosaur is a carnivore (boolean). Display each variable in the console together with its type, using typeof.