Example: Arrays
Notice that an array is printed to the console with commas separating the items. Two commas without a space between them signifies an empty position in the array.
Note:
Hints:
- undefined
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
var animals = ["ape", "bee", "cat", "dog", "eel"];
var vegetables = [];
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX