In this example, We will see how to declare arrays in javaScript. var vehicles= ["Alto", "Swift", "BMW"]; See the code snippet:
vehicles