Answers for "pop and return array js"

8

how to remove last element in js

var array = [1, 2, 3, 4, 5, 6];
array.pop();
console.log(array);
//Output in console section:
//[1, 2, 3, 4, 5]
Posted by: Guest on August-06-2020
6

remove last element from array javascript

array.pop();
Posted by: Guest on August-10-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language