Modify Array Data With Indexes


Unlike strings, the entries of arrays are mutable and can be changed freely.

Example

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

Instructions

Modify the data stored at index 0 of myArray to a value of 3.

Get a hint