basic-javascript-10-debug-timestable2.htm / htm
<html> <head> <script language=JavaScript type="text/javascript"> function writeTimesTable(timesTable) { var counter; var writeString; for (counter = 1; counter < 12; counter++) { writeString = counter + " * " + timesTable + " = "; writeString = writeString + (timesTable * counter); writeString = writeString + "<BR>"; document.write(writeString); } } </script> </head> <body> <div><script language=JavaScript type="text/javascript"> var timesTable; debugger for (timesTable = 1; timesTable <= 12; timesTable++) { document.write("<P>") writeTimesTable(timesTable) document.write("</P>") } </script></div> </body> </html>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.