Basic JavaScript - Access Array Data with Indexes

Tell us what’s happening:
Not really sure why this is blocking me. I’ve tried with console on line 2 instead of 3 and the result is similar.

Your code so far

const myArray = [50,60,70];
const myData = myArray [0];
console.log(myData);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Safari/605.1.15

Challenge: Basic JavaScript - Access Array Data with Indexes

Link to the challenge:

do not leave a space to the left of the [0]
it should be immediately next to the variable name

1 Like

Hello! Indeed, i was too tired when i did this yesterday. I looked at this first thing in the morning today, did it from scratch and passed immediately to the next exercise. Thank you for the help anyway! :slight_smile:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.