Help for this page

Select Code to Download


  1. or download this
    Arrays can be created using the literal notation:
    
    let fruits = ['Apple', 'Banana'];
    
    console.log(fruits.length); // 2
    console.log(fruits[0]);     // "Apple"