×

typescript · level 1 · unit 1 · lesson 4

  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

An is a clue, not a disaster.

An error is a message saying something went wrong. Everyone gets them, even experts. Before your code runs, a reads every line. If it spots a mistake, nothing runs until you fix it.

Each error has a code, a message and a line number, like TS1002: Unterminated string literal. (line 1). Unterminated means not finished: a quote mark is missing its partner.

TypeScript is , so Console with a capital C is a stranger. You would see TS2552: Cannot find name 'Console'. The message even suggests the right word.

The code at the start, like TS1002, names the kind of mistake, so you will soon recognise old friends.