Put in order · JavaScript and TypeScript course · Module 2: Functions, Arrays and Objects

typeof Syntax

Arrange the elements of checking a variable's type:

Items to put in order

  • typeof
  • ===
  • dinoSpecies
  • 'string'
Show the answer

Correct order:

  1. typeof
  2. dinoSpecies
  3. ===
  4. 'string'