Utilizor
Contact Us

Array Basics

Creating and using arrays.

Array Basics

An array is a special variable, which can hold more than one value.

const cars = ["Saab", "Volvo", "BMW"];

It is a common practice to declare arrays with the const keyword.

Example

const cars = ["Saab", "Volvo", "BMW"];