Tuesday, 3 September 2013

Why won't my While Loop work?

Why won't my While Loop work?

I am doing the video tutorials from The New Boston and I'm on video 20.
Everything has been fine until now but I can't get this one to run. I've
checked against the code in the tut and I just can't see what I'm missing.
I'm sure it's right in front of my face.
Sorry this is so basic, but I'm a total newbie.
This is the video tutorial: http://www.youtube.com/watch?v=QPFW_0blw9w
This is my code:
var x = 1;
while(x<10){
document.write(x + "how do you like </br>");
x++;
}
Thanks for any help!

No comments:

Post a Comment