var arr = ['a', 'b', 'c']
arr[0]
"a"
arr[5] = 'd'
"d"
arr
["a", "b", "c", undefined, undefined, "d"]
arr.length
6
arr.length = 3
3
arr
["a", "b", "c"]
arr.push('d')
4
arr[arr.length] = 'e'
"e"
arr
["a", "b", "c", "d", "e"]
The console allows you to interact with the course material and examples. Use the following keys:
A special logging function is also available: