Loop

Run Settings
LanguageJavaScript
Language Version
Run Command
for(let i = 0; i < 5; i++) { console.log(i); } console.log("======="); const myArray = ["Harry", "Ron", "Hermione", "Tom"]; for(let i = 0; i < myArray.length; i++) { console.log(myArray[i]); } console.log("=== For of Loop ==="); let myArrAy = ["Harry", "Ron", "Hermione", "Tom"]; for(const arrayItem of myArrAy) { console.log(arrayItem) }
Editor Settings
Theme
Key bindings
Full width
Lines