javascript arreglos 1

javascript arreglos

let frutas = ["Manzana", "Banana"]
console.log(frutas.length)

Here is what the above code is Doing:
1. We create a variable called frutas and assign it to an array with two strings.
2. We then use the console.log() method to print the length of the array to the console.

Similar Posts