freeCodeCamp Challenge Guide: Modify Array Data With Indexes

freeCodeCamp Challenge Guide: Modify Array Data With Indexes
0

#1

We can also modify the data stored in arrays by using indexes.

For example:

var myArray = [1,2,3];
ourArray[0]=3; but you cannot use ourArray as the var is myArray.


#2

I am having problems with this challenge. Here is what I’ve done:

var myArray = [1,2,3];
ourArray[0]=3;

Wouldn’t that modify the array, so that the array would read [3,2,3]?


#3

yes it does! but “You should be using correct index to modify the value in myArray” i have an issue also.