Programming Concepts — Array
An array is a data structure that can store multiple values in a single variable. The values can be accessed by their index number.
let fruits = ['Apple', 'Banana', 'Mango'];
console.log(fruits[1]); // Output: Banana
An array is a data structure that can store multiple values in a single variable. The values can be accessed by their index number.
let fruits = ['Apple', 'Banana', 'Mango'];
console.log(fruits[1]); // Output: Banana