0
Append an element
How can I append an element to an array?
2 Answers
+ 1
append to an array is often refered as push operation.
And you can push using Array.push(); method
+ 3
var fruit = ["mango", "pear"];
fruit.push("apple");
console.log(fruit[2]);
try it in your console, press f12, paste it and press enter.