JavaScript Array Methods
. arr.push() – adds items to the end
Example
const fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.push("Kiwi");
Result: Banana,Orange,Apple,Mango,Kiwi
. arr.pop() -extracts an item from the end
Example
const fruits = ["Banana", "Oran...
ajaythopate.dev1 min read