Javascript Array

Javascript Array

An Array is used to store more than one value in the variable.

You start with an array declaration with an opening square bracket, end it with a closing square bracket, and put a comma between each entry, like this:

var arrayName = ['labw3', 235, true];

You can store the three kinds of data in the array numbers, string and Boolean values in the array.

String value enclosed with the single or double quotes. Number and Boolean just value no need of the quotes.



Copyright Labw3