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

Array Basics - Declaration Syntax

Arrange the elements of an array declaration in JavaScript

Items to click

  • arr
  • =
  • [1, 2, 3]
  • const
Show the answer

Correct order:

  1. const
  2. arr
  3. =
  4. [1, 2, 3]