This program uses a "for" loop to generate the 5 times table from
5 x 1 to 5 x 12.
function fiveTimesTable() { var output = ""; for (var i = 1; i <= 12; i++) { output += "5 x " + i + " = " + i * 5 + "<br>"; } document.getElementById("output").innerHTML = output; }
Dave Irwin @ redirwin.com