Can someone please tell me what is wrong?

Tell us what’s happening:

Your code so far

// Setup
var myArray = [50,60,70];

// Only change code below this line
var myData = myArray[0];
var myData = myArray[1];
var myData = myArray[2];

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36.

Challenge: Access Array Data with Indexes

Link to the challenge:

The instructions tell you to create a variable named myData (which you did) and set it equal to the first value of myArray.

The problem is you assigned myArray three different values . Only the last value assigned to myData is contained in myData. Think about which element in myArray really needs to be assigned to myData.