Array problem ¿what should I do here?

What is the good answer?
I think that this is a way to access to array objects

Your code so far


let myArray = ["a", "b", "c", "d"];
// Only change code below this line
myArray[0];
myArray[1];
myArray[2];
myArray[3];
// Only change code above this line
console.log(myArray);

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0

Challenge: Access an Array’s Contents Using Bracket Notation

Link to the challenge:

Hi @Herculeskan !

You need to pay close attention to the directions.
In order to complete this challenge, set the 2nd position (index 1 ) of myArray to anything you want, besides the letter b .

You have to assign another value to myArray[1] here

Just like they did in the example.

ourArray[1] = "not b anymore";
1 Like


thank u, it worked, you are the best programmer in the world

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