Basic JavaScript - Access Array Data with Indexes

i keep trying to pass this but all to no avail

Your code so far

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

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:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


I’m not sure why you switched the starting code to var, but you shouldn’t do that.

Hey! Instead of providing answers to questions, it would be much better for someone’s learning experience if you just provide them with enough hints and suggestions to help them get through the problem.

We are trying to minimize the number of solutions on the site to help the community members get better at reasoning through and solving potential roadblocks.

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