Skip to content

Challenge Modify Array Data With Indexes

SaintPeter edited this page · 1 revision
Clone this wiki locally

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]
Something went wrong with that request. Please try again.