Access Array Data with Indexes - Free Code Camp

preview_player
Показать описание
When learning basic data structures in JavaScript, it's valuable to understand how to access array data with indexes. That's what this tutorial is for. I hope you find it useful. Enjoy!
Рекомендации по теме
Комментарии
Автор

**this challenge has changed**

freecodecamp altered the course.

example:
const array = [50, 60, 70];
console.log(array[0]);
const data = array[1];

the challenge:
Create a variable called myData and set it to equal the first value of myArray using bracket notation.


text given in challenge pad:
const myArray = [50, 60, 70];

solution:
const/var/let myData = myArray[0];

anon
Автор

Thank you Mr. Ian its all arriving along nicely for me

zken
Автор

I have this exact thing typed in and it still says I don’t have it in bracket notation 😢

jasonodine