๐Ÿ“š Reference


๐Ÿ“œย Chapter


push()

โ€ฃ

โ€ฃ

โ€ฃ

pop()


arr.pop()

์˜ˆ์‹œ


const numbers = [1, 2, 3];
const lastNumber = numbers.pop);

console.log(numbers); // [1, 2] console.log(lastNumber); // 3