Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //initializing an empty array
- let emptyArray = [];
- //initializing array with items
- let fullArray = ["number", 5, "wow"];
- //Lenghth
- console.log(fullArray.length); // 3 ( how many elements are in the array)
Add Comment
Please, Sign In to add comment