Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const names = ["Kio", "Rio", "Mac"];
- // Long Version
- for (let i = 0; i < names.length; i++) {
- const name = names[i];
- console.log(name);
- }
- // Short Version
- for (let name of names) console.log(name);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement