javascript loop through array
var colors = ["red","blue","green"];
colors.forEach(function(color) {
console.log(color);
});
javascript loop through array
var colors = ["red","blue","green"];
colors.forEach(function(color) {
console.log(color);
});
forloop in js
for(i = 0; i < x; ++i){
//Loop, x can be replaced with any integer;
}
javascript loop if statement
// a loop is where you say i = 5 and if i < 6 {
// print("hdyugvryvg");
// it means i = 5 and 6 is greater than 5 so it should print out hdyugvryvg 5 times
//}
// example
for (let i = 0; i < 10000; i++) {
console.log('huduiduin 100000 times');
}
// dont try this put a lower number this nearly crashed my browser
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us