Files
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30

415 B

title
title
Modify Array Data With Indexes

Modify Array Data With Indexes


Hints

Hint 1

Access the position of the array, and change it, like so:

var arr = [1, 2, 3, 4, 5];

arr[0] = 6; // Now, the array is [6, 2, 3, 4, 5]
arr[4] = 10; // Now, the array is [6, 2, 3, 4, 10]

The important concept here is that arrays are mutable. This means that they can be changed easily.