Loopy de loop
var i;
for (i = 0; i < 10; i++) {
// The code in here
}
var i;
for (i = 1; i < 10; i++) {
// The code in here
}
var i;
for (i = 0; i <= 10; i++) {
// The code in here
}
var i = 0;
var total = 58;
for (i; i <= total; i++) {
// The code in here
}
var i;
var j;
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
// The code in here
}
}
var i;
var j;
for (i = 0; i < 10; i++) {
for (j = 0; j <= 10; j++) {
// The code in here
}
}
var i;
var j;
var total = 100;
for (i = 0; i < total + 4; i++) {
for (j = 1; j <= total; j++) {
// The code in here
}
}
var dinos = ['Stegosaurus', 'Triceratops', 'Brontosaurus', 'Microraptor'];
dinos.forEach(function (item) {
// The code in here
});
var dinos = ['Stegosaurus', 'Triceratops', 'Brontosaurus', 'Microraptor'];
dinos.push('Tyrannosaurus');
dinos.push('Spinosaurus');
dinos.forEach(function (item) {
// The code in here
});
var dinos = ['Stegosaurus', 'Triceratops', 'Brontosaurus', 'Microraptor'];
dinos.pop();
dinos.push('Tyrannosaurus');
dinos.shift();
dinos.forEach(function (item) {
// The code in here
});