24) How to create an array in JavaScript?

There are 3 ways to create an array in JavaScript.

By array literal
By creating an instance of Array
By using an Array constructor
Let’s see a simple code to create an array using object literal.

var emp=[“Shyam”,”Vimal”,”Ratan”];