const array = ['one', 'two', 'three'];
or
const array = new Array('one', 'two', 'three');
array.indexOf('two');
array[1];
array.push('four');
array.unshift('zero');
array.pop();
array.shift();
array.splice(1, 1);
array[0] = 2;
or
array.splice(1, 1, 'four');
for (let idx = 0; idx < array.length; idx++) {
console.log(array[idx]);
}
or
for (let item of array) {
console.log(item);
}