javascript add item to array

JavaScript
voted: 0
vote
array add

To add item to array 'push' function is used.

var arrayName = [
    "pear",
    "apple",
   "avocado"
];

arryName.push("pineapple");
working url: not entered
version: not entered
Leave a Comment:
Characters left:
No comments yet.