Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is wrong w/ this simple code?

Status
Not open for further replies.

mmt4331

Programmer
Dec 18, 2000
125
0
0
US
What is wrong w/ this simple code? I'm trying to get a while loop working. Thx.


<html>
<title>Practice</title>
<head>
<script language=&quot;javascript&quot;>

var numCounter = 0;
var lowConstant = 10;

function smallLoop() {

while (numCounter < lowConstant)
{numCounter++;
document.writeln(numCounter);
}}
</script>
</head>
</html>
 

Forget it...I added some more code and got the answer I needed. Thx.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top