Javascript - Write program to Use the push() method to add a new item to an array.

Requirements

Use the push() method to add a new item to fruits: Kiwi.

Here is the array

var fruits = ["Banana", "Orange", "Apple"];

Demo

var fruits = ["Banana", "Orange", "Apple"];
console.log( fruits );//  w w w  .  ja  va 2s .  com
fruits.push("Kiwi");
console.log( fruits );

Result