What is wrong w/ this simple code? I'm trying to get a while loop working. Thx.
<html>
<title>Practice</title>
<head>
<script language="javascript">
var numCounter = 0;
var lowConstant = 10;
function smallLoop() {
while (numCounter < lowConstant)
{numCounter++;
document.writeln(numCounter);
}}
</script>
</head>
</html>
<html>
<title>Practice</title>
<head>
<script language="javascript">
var numCounter = 0;
var lowConstant = 10;
function smallLoop() {
while (numCounter < lowConstant)
{numCounter++;
document.writeln(numCounter);
}}
</script>
</head>
</html>