Tell us what’s happening:
I watched an FCC Youtube video and had the exact line: “var myData = myArray [0];”
I get this right: “The variable myData should equal the first value of myArray.”
But, I get this wrong:
“The data in variable myArray should be accessed using bracket notation.”
Your code so far
// Example
var ourArray = [1,2,3];
var ourData = ourArray[0]; // equals 1
// Setup
var myArray = [1,2,3];
// Only change code below this line.
var myData = myArray [0];
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38
.
Link to the challenge: