Google News
logo
JavaScript - Interview Questions
In JavaScript, append a new element at the end of the array.
To append an element in a JavaScript array, we use push(), and to remove an array, pop() is used.
 
Syntax :
array.push(item1, item2, …, itemX)
Advertisement