To define an array, either use the brackets notation or the Array object notation:
var myArray = [1, 2, 3];
var theSameArray = new Array(1, 2, 3);
We can use the brackets
 operator to address a specific cell in our array. Addressing uses zero-based indices, so for example, in
myArray the 2nd member can be addressed with index 1.
console.log(myArray); // prints out 2
var myArray = 
myArray = "hello"
Will print out:
[undefined × 3, "hello"]
You must define an array with the following three variables:
- A string which has the value of "What is the meaning of life?"
- A number which has a value of
- A boolean which has a value of