Multiple choice javascript

You define an array using

  1. var myarray = new Array();

  2. var myarray = array new;

  3. var new Array() = myarray;

  4. var new array = myarray;

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Arrays in JavaScript are created using the Array constructor with 'new' keyword. Option A shows the correct syntax: new Array(). Options B, C, and D incorrectly place keywords and variable names in the wrong order - they mix up the constructor name with the variable name.