how to use pop in javascript code example
Example 1: javascript remove last element from array
array.pop();
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.pop();
Example 2: remove last element from array javascript
array.pop();
Example 3: js array pop
var array = ['A', 'B', 'C'];
lastElement = array.pop();
Example 4: javascript pop
var cars = ['mazda', 'honda', 'tesla'];
var telsa=cars.pop();
Example 5: js array.pop
let cats = ['Bob'];
cats.push('Willy');
cats.push('Puff', 'George');
Example 6: pop javascript
let cats = ['Bob', 'Willy', 'Mini'];
cats.pop();