how to add string in array javascript ? code example
Example 1: js add item to array
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");
Example 2: array push
arr.push([element1[, ...[, elementN]]])
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");
arr.push([element1[, ...[, elementN]]])