Basic JavaScript - Access Array Data with Indexes

Tell us what’s happening:
Describe your issue in detail here.
I have entered the codes with bracket notation. still it shows error. I shall share the question and error message below.
Question:- Create a variable called myData and set it to equal the first value of myArray using bracket notation.
Error Msg:- The data in variable myArray should be accessed using bracket notation.

please have a look at my codes and let me know where have i gone wrong.
const myArray = [50, 60, 70];

const myData = myArray [0];

Your code so far

const myArray = [50, 60, 70];
const myData = myArray [0];

Your browser information:

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

Challenge: Basic JavaScript - Access Array Data with Indexes

Link to the challenge:

The test is a little finicky. It expects you to write the opening [ without a space between it and myArray.

yes… It is. It worked. Thank you very much :pray: