.push()
.pop()
.shift()
.unshift()
.concat( ) 접합
const array1 = {a, b, c};
const array2 = {d, e, f};
const array3 = array1.concat(array2);
console.log(array3);
.includes( )
const array = {1, 2, 3};
console.log(array.includes(2)};
console.log(array.includes(5)};
.indexOf( )
const array = {‘coffee’, ‘tea’, ‘ice-cream’};
console.log(array.indexOf(‘tea’));
console.log(array.indexOf(‘coffee’));
console.log(array.indexOf(‘hot-choco’))
.reverse( )
const array = {1, 2, 3};
array.reverse();
.slice( )
const array = {‘a’, ‘b’, ‘c’, ‘d’, ‘e’};
array.slice(1);
array.slice(1, 4);
array.slice(-2);
.splice( )
const weekend = {‘Mon’, ‘Wed’, ‘Thu’, ‘Fri’, ’Sat’};
weekend.splice(1, 0, ’Tue’);
weekend.splice(5, 1, ’Sun’);
weekend.splice(5,0);