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

Arrow Function Syntax

Arrange the elements of an arrow function declaration:

Items to put in order

  • = ()
  • 'ROAR!'
  • =>
  • const roar
Show the answer

Correct order:

  1. const roar
  2. = ()
  3. =>
  4. 'ROAR!'