How to add item to array in JavaScript

Arrays
By Jad Joubran · 
Last updated Dec 16, 2017
const apps = [];

apps.push("calculator"); // returns 1 (new length of the array)

apps.push("phone", "clock"); // returns 3 (new length of the array)
["calculator", "phone", "clock"]
Array.push on MDN