#26 While/do while loop | JavaScript Full Tutorial
HTML-код
- Опубликовано: 10 сен 2024
- 🙂 SUBSCRIBE - hit the bell 🔔 and choose all: goo.gl/nYLZvz
In this lesson let's learn all about the while/do while loops. The while loops works in a similar way to the for loop in that it loops over a block of code. the difference is the initialiser variable is written before and outside of the while loop syntax, and the final expression is included inside the while loop curly braces after the code to be run. Only the condition is included inside the parentheses of a while loop. We'll also learn about the do while loop, the do while loop will run the code at least once before coming on to evaluating the condition.
------------------
👍 HTML FULL TUTORIAL: shorturl.at/fiCMV
👍 CSS FULL TUTORIAL: shorturl.at/clGSZ
------------------
FACEBOOK: / devdreamercode
TWITTER: / devdreamercode
SUBSCRIBE and hit the BELL NOTIFICATION 🔔: goo.gl/nYLZvz
------------------
Learn with Dev Dreamer! Step by step, easy to understand tutorials :-)
finally somebody who explains this in English lol. Glad I've found your channel, thanks for explaining it so thoroughly!
The way you explain the syntax and process flow is very clear. Thank you!
Thank you! 🙂
So helpful 🙏❤️
As always good work.
Maybe I'm missing something, but I don't recall you properly explaining when you go from using
x+=y is the same as x=x+y
It is the shortcut version.
✅
clear tuts thanks you ..
Glad you like them! Thank you 🙂👍
why does the console.log(i) come before the i++ and why does it work. would it work the other way. i can test the latter myself. your videos are of elite quality btw. i tested it. it logged 1 through 11 but idk why, im assuming it added 1 to 0 first then proceeded with logging 1 through 10 and then the final console.log(i) gave the final log of 11. input would be great.
Thank you so much!
Hey LDT! Thank you for watching and for all your awesome comments! 😃👍👍
Thnaks !
Hi Dev dreamer please upload full we development project as you done in a css project plzzz Dev dreamer upload video
Majority of beginners want to learn tutorial which doesn't run at a very fast speed because javascript is hard to understand for beginners. The tutor may know very well and can show off, but in the end, it's the viewer who decided to choose whose tutor is the best. Slowing down to 0.75 X is not as practicable as you might think.
Hi Jimmy, this isn’t about which tutor is best or showing off. It’s about providing high quality education to those that need it. I’m not sure what you mean by “not as practicable as you might think” but many people use the speed controls and find them very helpful. Hope you find the help you’re looking for, whether here or elsewhere 🙂👍
As a beginner I prefer x1.1 to x1.3 speed. It helps me to be more attentive and be more focus. normal or slow pace gives my mind a lot of time to wander to different thoughts outside the topic.
please someone explain why he put $ . i never come across this as yet.
Hey Pravesh, the ${ } is called a Template Literal, a modern feature of JavaScript. I created a full tutorial on it here - ruclips.net/video/52OJhTbCtoA/видео.html
@@DevDreamer thank you very much