In the exercise I had to 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
After much trial and error I found this solution:
var myArray = ["What is the meaning of life?", 42, true]; console.log(myArray); console.log(myArray); console.log(myArray);