The Littlest For Loop Introduction

Welcome to For Loops in JS.

by Alex Cowan

JavaScript

var howmany = 5;

var i;

for (i = 0; i < howmany; i++) { 
  console.log('This is iteration ' + i + '\, which means I have looped ' + (i+1) + ' times.');
}