Basic JavaScript - Access Array Data with Indexes

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

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


Your browser information:

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

Challenge: Basic JavaScript - Access Array Data with Indexes

Link to the challenge:

Hi there and welcome to our community!

It’s helpful if you can learn to describe the issues which you’re facing in your own words, including any error messages you see. Learning to describe problems is tricky but a vital skill in coding. Also, the more you say, the more we can help!

When using bracket notation, please ensure that there is no space between the object/array name and the bracket notation itself.

EXAMPLE:

// this is bad
thisArray [0]

// this is good
thisArray[0]

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