array en javascript code example
Example 1: javascript array
var colors = ["red","blue","green"];
for (var i = 0; i < colors.length; i++) {
console.log(colors[i]);
}
Example 2: javascript array
var food = ["cake", "apple", "Ice-Cream"]
var Number = [Math.floor(Math.random() * food.length)];
console.log(logammounts[woodloot])
Example 3: https://javascript array
let fruits = ['Apple', 'Banana']
console.log(fruits.length)
Example 4: javascript arrays
Arrays = 'Arrays are variables that hold multiple Values. PS. they dont have to be of the same type.'
const Array = ['Hello', 'World', 100, 50]