Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4c888b0

Browse files
committed
Loop & Iteration - STATUS: COMPLETED
1 parent 140c5ae commit 4c888b0

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

‎07-Loops-And-Iterations.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
**Table of Content**
22

3+
- [Loops and Iteration](#loops-and-iteration)
4+
- [`while` Loops](#while-loops)
5+
- [`do-while` loop](#do-while-loop)
6+
- [`for` loops](#for-loops)
7+
- [`for...of` loop](#forof-loop)
8+
- [`for...in` loop](#forin-loop)
9+
- [Controlling Loops](#controlling-loops)
10+
311
# Loops and Iteration
412

513
We regularly face conditions when we need to run our code over and over again until some condition is met. JavaScript provides us several forms to achive this condition.
@@ -84,7 +92,7 @@ Steps involved:
8492
5. Go back to Step 2.
8593
6. Output the results.
8694

87-
## for...of loop
95+
## `for...of` loop
8896

8997
We can use `for...of` statement to loop over an iterable object such as Array, String, Map, Set etc.
9098

@@ -138,7 +146,7 @@ for (const num in vars) {
138146
*/
139147
```
140148

141-
**Controlling Loops**
149+
## Controlling Loops
142150

143151
We can have more control over loops with the keywords `continue` and `break` provided by JavaScript.
144152

@@ -179,7 +187,3 @@ for (let i = 0; i < even.length; i += 1) {
179187

180188
console.log(indexOfSix);
181189
```
182-
183-
```
184-
185-
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /