es6 create array list code example
Example 1: how to create an array in javascript
let fruits = ['Apple', 'Banana']
console.log(fruits.length)
// 2
Example 2: javascript to array
Array.from("Hello"); // ["H", "e", "l", "l", "o"]
let fruits = ['Apple', 'Banana']
console.log(fruits.length)
// 2
Array.from("Hello"); // ["H", "e", "l", "l", "o"]