while-loop & do...while loop in JavaScript | BEST TUTORIAL FOR BEGINNERS!

Опубликовано: 15 Июль 2026
на канале: ProgBytes
41
7

loops are used for the purpose of repeating and automating certain tasks or operations in programming.
we use loops to repeat a block of code for us as long as a specified condition is true.
this will automate a lot of tasks for us without manually writing any code to each element.

javascript has 5 types of loops :
1 - for loop
2 - while loop
3 - do...while loop
4 - for...in loop
5 - for...of loop

basically all of the mentioned loops do the same thing , the only difference is the way that they do it.
in this video you are going to learn everything about while loops and do...while loops in javascript.

#whileloop
#dowhileloop
#javascripttutorial




⌚ TIMESTAMPS

00:00 which loop to use?
01:06 for-loop vs while-loop
02:04 while loop
10:19 do..while loop


JAVASCRIPT FOR-LOOP :
   • for-loop in JavaScript | BEST TUTORIAL FOR...  

JAVASCRIPT IF STATEMENT:
   • Conditionals in JavaScript | if STATEMENTS...  


ALSO WATCH :

📺 JavaScript tutorials playlist:
   • JavaScript tutorials  



📺 CSS tutorials
CSS course playlist:
   • CSS crush course (beginner to advanced)  


🔽 CONNECT WITH ME :

X : https://twitter.com/ProgBytes?t=5w5MW...


🔔 SUBSCRIBE ON YOUTUBE
   / @progbytes