8.2. Working With Arrays 8.2.1. Bracket Notation and Index
//Use bracket notation and index to access items in an array.
let programmingLanguages = [
"JavaScript", // index 0
"Python", // index 1
"Java", // index 2
"C#" // index 3
];
console.log(programmingLanguages[0]);
console.log(programmingLanguages[3]);
// What will happen when index 4 is requested?
console.log(programmingLanguages[4]);
//JavaScript
//C#
//undefined