Skip to content

Commit ec15f6a

Browse files
committed
Update docs
1 parent 0274eae commit ec15f6a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,8 @@ Loops are used to perform a group of statements a number of times until a condit
507507
508508
#### While Statement
509509
510-
The while statement is the simplest conditional statement. It repeats a group of statements while the condition it evaluates is false.
510+
The while statement is the simplest conditional statement. It repeats a group of statements while the
511+
condition it evaluates is false.
511512
512513
```js
513514
let n = 0;
@@ -516,7 +517,18 @@ while(n < 10) { // conditional loop
516517
n++;
517518
}
518519
```
520+
#### Until Statement
519521
522+
The until statement is similar to the while statement but loops while the condition is false. It repeats
523+
a group of statements until the condition it evaluates is true.
524+
525+
```js
526+
let n = 0;
527+
528+
until(n >= 10) { // conditional loop
529+
n++;
530+
}
531+
```
520532
#### For Statement
521533
522534
The for statement is typically used to count over a range of numeric values. It contains three parts, a

0 commit comments

Comments
 (0)