js array element compare code example
Example 1: js array add element
array.push(element)
Example 2: javascript element in array
var fruits = ["Banana", "Orange", "Apple", "Mango"];
var n = fruits.includes("Mango");
Example 3: adding element to array javascript
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");