Loop Statements in JavaScript

Опубликовано: 14 Октябрь 2024
на канале: CodAffection
1,107
49

🍒 Related Videos
Next Part:    • Functions in JavaScript  
Prev. Part:    • Control Flow Statements in JavaScript  

💖 Channel Support
➤ Paypal: https://bit.ly/3L36ut4
➤ UPI App: https://geni.us/ScanQRCode
➤ Amazon: https://geni.us/AmazonAffiliated

💌 For Business Inquiries
[email protected]

🚶‍♂️ Follow us
Facebook :   / codaffection  
Discord :   / discord  
Twitter :   / codaffection  

---
Loop Statements in JavaScript.

Summary
With loop statements, we could repeat one or more statements without re-writing them. There are three basic loop statements in JavaScript. They are
1) For Loop.
2) While Loop.
3) Do-While Loop.

All of these statements are covered with required flow charts and practical examples like iterating through array elements, reversing a string, and printing patterns. Finally, keywords related to JavaScript Loops - break and continue are also covered.

Discussion @ times
--------------------------------
00:00 - Introduction.
00:23 - Why Do We Need Loops.
01:14 - For Loop.
05:47 - Loop through Array Elements.
07:10 - While Loop.
10:32 - For Loop Vs While Loop.
11:02 - Do-While Loop.
13:14 - Reverse a String with Loop.
15:11 - Keywords - break and continue.

#JavaScript #JavaScriptBeginnersTutorial #CodAffection