Skip to content

Challenge Modify Array Data With Indexes

Rafael J. Rodriguez edited this page May 14, 2016 · 3 revisions

Challenge Modify Array Data With Indexes

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

For example:

var ourArray = [3,2,1];
ourArray[0] = 1; // equals [1,2,1]

Clone this wiki locally