Please send questions to
st10@humboldt.edu .
<html>
<!-- js1.html -->
<!-- ADAPTED from "JavaScript: a Definitive Guide", 4th edition,
David Flanagan, O'Reilly, Section 1.5
(adapted by Sharon Tuttle,
last modified 8-22-06) -->
<head>
<title> JavaScript Example #1 - Factorials </title>
</head>
<body>
<h2> JavaScript Example #1 - Factorials </h2>
<h3> ADAPTED from "JavaScript: a Definitive Guide", 4th Ed.,
David Flanagan, O'Reilly, Section 1.5 <h3>
<h4> (adapted by Sharon Tuttle, last modified 8-22-06) </h4>
<hr>
<script type="text/javascript">
document.write("<h2>Table of Factorials</h2>");
fact = 1;
for (i=1; i<10; i++)
{
fact *= i;
document.write(i + "! = " + fact);
document.write("<br>");
}
</script>
</body>
</html>