티스토리 뷰

const arrNum = [100, 200, 300, 400, 500];
const arrNumUnshift = arrNum.unshift(600)
document.querySelector(".sample04_M1").innerHTML = "Unshift(600)";

const arrNum = [100, 200, 300, 400, 500];
const arrNumshift = arrNum.shift()
document.querySelector(".sample04_M2").innerHTML = "shift()";
더보기

{결괏값}

6

200,300,400,500

댓글
© 2018 webstoryboy