var array_name = [item1, item2, item3, ...];
T he JavaScript Array object is a global object that is used in the construction of arrays; which are high-level, list-like objects. Create an Array var fruits = ['Apple', 'Banana']; console. log(fruits. length); // 2. Access (index into) an Array item var first = fruits[0]; // Apple var last = fruits[fruits.