Pop Js

Source URL: N/A

Language: javascript

Created on: 2020-06-07 18:04:13

const plants = ['broccoli', 'cauliflower', 'cabbage', 'kale', 'tomato'];

console.log(plants.pop());
// expected output: "tomato"

console.log(plants);
// expected output: Array ["broccoli", "cauliflower", "cabbage", "kale"]
Pop Js
content_copy