In this tutorial I show you how to use the “while loop” in JavaScript.
Don’t forget to subscribe:
http://www.youtube.com/user/QuentinWatt
For collaborations and business inquiries, please contact via Channel Pages: http://ChannelPages.com/QuentinWatt Social links:
————————————————————-
Add me on twitter:
Tweets by QuentinWatt
facebook group:
https://www.facebook.com/quentin.watt
————————————————————-
Original source
40 responses to “JavaScript beginner tutorial 20 – while loop”
Did we have to use the <p> tag here? Why not just document.write
man you are awesome! Really easy to follow your tutorial, where you leave no space for question marks. Keep on doing the great work, mate!
Keep it up man.
I'm 24y/o. I am beginner and learning javascript from your channnel. Can u please let me know from which channel i can learn entire javascript and advance javascript too. Good Job.
Thanks bro
Thanks sir!
Awesome
I kinda hate it when programmers and mathematicians alike use the common saying that they are lazy. Being economically efficient with your work does not make lazy, it makes you more effective, it makes you get more stuff done in less time.
Thank you Quintin! I like your style of teaching: straight-forward and direct to the point..good job!
Cool useful information! Thanks Quentin!
thank you!
You, sir, are a gentleman and a scholar. I never thought I would understand this.
thank youuu!
javascrpt
Quentin's amazing accent keeps me engaged!
helpful
Hi, thank you for the helpful video. I have a question about the loop. Besides paragraphs what would you use a loop for if you were building a website?
Great video! I just subscribed and will be using your videos to supplement my learning on Treehouse. Thanks for the knowledge!
cool bro..
I'm 70y/o. I've been attempting to learn code for over five years. I've tried them all including pay programs like Lynda.com. Quentin is– by far– the best!
Great, this tutorial is easy to understand. Thank you so much! 🙂
Thank you, Quentin!
hey Quentin, dankie vir die tuts bra, you made my javascript a whole lot easier… can you please tell me what to do if I want to increment my counter by a different number other than 1, for 1 it's x++, what about for anything above 1?
I don't quite understand why the +counter+ is necessary in the "<p>this is a "+counter+"paragraph</p>" string. Why couldn't you have just had "<p>this is a paragraph</p>"?
EDIT: Rewatched, however I still don't understand the need to concatenate the strings. I erased the concatenation and still got the same result. I'm confused now.
EDIT TWO: Turns out you have the counter variable used to say paragraph 1, 2, 3, etc. I'm a tard.
Great bro, i like your videos.
No dislikes Strong!
Wow thanks a loT for this video! I am taking a JavaScript class just for fun and I never thought that I would love to code!!! This is my first coding class…
I am married with a software computer guy who has always tell me that I would enjoy coding but I never considerate it, now I can't stop!
I will share this video with my classmates, I am pretty sure that I will be a lot of help for them as it was for me 🙂
good job like always 🙂
Thank you.
This video is great, and clearly explained the purpose of a JavaScript while loop to me.
I'd been struggling to understand the while loop for the past two days, and you made it instantly understandable. You just saved me a lot of time and trouble. Thanks!
I always felt that javascript is difficult but your tutorial really made it easy for me to understand.
Your lessons are easier to understand than my Phd qualified college lecturer! Thanks so much!
Hello! Thank you very much for you uploads, they're extremely helpful! Could you please give me the link where you explain the string concatenation?
thnx
i did the same prg but its nt running in ny browser.
<html>
<head>
<title>javascript loop</tile></head>
<script type="text/javascript">
var i=1;
while(i<=10)
{
document.write("<p>hello suraj"+i+"</p>");
i++;
}
</script>
<body>
</body>
</html>
Very Helpful thanks Bro
I went a bit too fast and casued an infinite loop. Firefox basically just flipped me off.
Thank you Quentin, love your tutorials, easy to understand. Help me at college alot.
Thank you very much!! Your channel is amazing!!!!
thank you…this helps.