Modify Array Data With Indexes

Modify Array Data With Indexes
An Array is used to store more than one value in the variable. You create the array you can give list of values in the array at the time of declaration time. If you want to change the array value after declaration. Javascript array have the option to change the value in the array. How do this see below.
var arrayName = [1,2,3,4,5];
arrayName[0] = 'gokul';
console.log(arrayName[0]);

Here I can assign the value in the array are 1,2,3,4,5 now I want to change the first value 1 to 'lab3' as a string.
Now the arrayName has value likes this 'labw3',2,3,4,5.
Copyright Labw3