Upload files to "arrays"
This commit is contained in:
8
arrays/Example1.js
Normal file
8
arrays/Example1.js
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
// creating an array of strings
|
||||
let animals = ["Zebra", "Koala", "Lion", "Elephan", "Eagle"]
|
||||
|
||||
// displaying the items stored in array animals
|
||||
console.log(animals)
|
||||
|
||||
console.log("\narray contains "+ animals.length +" items")
|
||||
Reference in New Issue
Block a user