In JavaScript we can create a array with two ways:
Create new array with – [] Create new array with – []
![Array 1 Array 1](https://maheshwaghmare.com/wp-content/uploads/2022/07/create-new-array-with--1024x413.png)
Create new array with – new Array() Create new array with – new Array()
![Array 2 Array 2](https://maheshwaghmare.com/wp-content/uploads/2022/07/create-new-array-with-new-array-1024x376.png)
Developer Resources, Tips, Tricks, Tutorials and Much more.
In JavaScript we can create a array with two ways: