×

typescript · level 1 · unit 2 · lesson 3

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

Give every box a name that tells you what is inside.

Names can use letters, digits, _ and $. They cannot have spaces and cannot start with a digit. Capitals matter, so pet and Pet are two different boxes.

Good names say what is inside. x tells you nothing, but petName tells you everything. Your future self will thank you.

Need more than one word? Squash them together and give each new word a capital letter, like bestFriend. This is called , because the capitals stick up like humps.

let bestFriend: string = "Priya";
console.log("My best friend is " + bestFriend);

TypeScript does not mind what your names mean, but people reading your code do.