Modify Array Data With Indexes ...Help solve

Tell us what’s happening:

Please how can i calculate the arrays to get the required solution

Your code so far


// Example
var ourArray = [18,64,99];
ourArray[1] = 45; // ourArray now equals [18,45,99].

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

// Only change code below this line.


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/modify-array-data-with-indexes

I suggest you solve first the other challenge, if you don’y know how to access the datas in an array you can’t modify them

is the example clear?

var ourArray = [50,40,30];
ourArray[0] = 15; // equals [15,40,30]