Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 393 Bytes

collections-of-things.md

File metadata and controls

29 lines (20 loc) · 393 Bytes

Lists of Values

An array is a list of values.

  var things = ["thing1", "thing2", "thing3"];
  var letters = ["a", "b", "c"];

Show the first letter in the array.

alert(letters[0]);

Show the second value in the array.

alert(letters[1]);

Show the last value in the array.

alert(letters[2]);