We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
With JavaScript array variables, we can store several pieces of data in one place.
You start an array declaration with an opening bracket, end it with a closing bracket, and put a comma between each entry, like this:
var sandwich = ["peanut butter", "jelly", "bread"]
myArray = [2,'j'];
New to Free Code Camp?
JS Concepts
JS Language Reference
Other Links