Data Types
The main types are string (text), number, boolean (true or false), array and object.
Examplejavascript
Quick check
What is the index of the first item in an array?
Your turn: write the code
Print the typeof of each of these four values on its own line: 42, "hi", true and undefined.
Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.
Tip: use the left and right arrow keys to move between lessons.