1//Use bracket notation and index to access items in an array.
2
3let programmingLanguages = [
4 "JavaScript", // index 0
5 "Python", // index 1
6 "Java", // index 2
7 "C#" // index 3
8];
9console.log(programmingLanguages[0]);
10console.log(programmingLanguages[3]);
11
12// What will happen when index 4 is requested?
13console.log(programmingLanguages[4]);
14
15//JavaScript
16//C#
17//undefined