Web Development
72.9K subscribers
1.23K photos
1 video
2 files
556 links
Learn Web Development From Scratch

0️⃣ HTML / CSS
1️⃣ JavaScript
2️⃣ React / Vue / Angular
3️⃣ Node.js / Express
4️⃣ REST API
5️⃣ SQL / NoSQL Databases
6️⃣ UI / UX Design
7️⃣ Git / GitHub

Admin: @love_data
Download Telegram
⚡️ Understanding the 5 loops of JavaScript

🔁 Loops offer a quick & easy way to do something repeatedly.

The 5 loops in JavaScript essentially do the same thing: — they repeat an action a certain number of times. However, they have important differences.
Let’s dive in!


1. JavaScript For loop
Repeats a block of code as long as a certain condition is met.
Typically, used to loop through a block of code a specific amount of times.

2. JavaScript while loop
Loops through a block of code as long as the specified condition evaluates to true. As soon as the condition fails, the loop is stopped.

3. JavaScript do…while loop
The do…while loop is a variant of the while loop, which evaluates the condition at the END of each loop iteration.
With a do…while loop the block of code is executed ONCE, and THEN the condition is evaluated.
9👍1
How to create Frontend development Portfolio
11