Please help me i am stuck step-developer

Tell us what’s happening:
Describe your issue in detail here.
i dont know how it works

Your code so far
// Setup

const myArray = [18, 64, 99];

// Only change code below this line

myArray[18] = 45;

myArray[64] = 64;

myArray[99] = 99;


// Setup
const myArray = [18, 64, 99];

// Only change code below this line
myArray[18] = 45;
myArray[64] = 64;
myArray[99] = 99;


Your browser information:
i am using google chrome, please help me.

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

Challenge: Modify Array Data With Indexes

Link to the challenge:

First log the resulting array to the console.
that is done by writing

console.log(myArray);

as last line in your code.
That will tell you what array you’ve made and then you can compare it to how you need to make it.

The number in the bracket notation is the index, the index refer to which item of the array that line of code shall be applied.

JS starts with 0, meaning the first item of an array has index of 0, the second has index of 1 and so on.

The challenge asks you to change the first item of the provided array.

Now what would be the correct index to use to be able to change the first item of the array.

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