GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Grammar cleanup. · hasselg/javascript@49e24e9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • loops
    • while.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎loops/while.md‎

Copy file name to clipboardExpand all lines: loops/while.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# While Loop
22

3-
While Loops can execute a block of code as long as a specified condition is true.
3+
While Loops repetitively execute a block of code as long as a specified condition is true.
44

55
```javascript
66
while(condition){
77
// do it as long as condition is true
88
}
99
```
1010

11-
For example, The loop in this example will continue to run as long as the variable i is less than 5:
11+
For example, the loop in this example will repetitively execute its block of code as long as the variable i is less than 5:
1212

1313
```javascript
1414
var i = 0, x = "";
@@ -18,7 +18,7 @@ while (i < 5) {
1818
}
1919
```
2020

21-
The do/while loop is a variant of the while loop. This loop will execute the code block once, before checking if the condition is true, then it will repeat the loop as long as the condition is true:
21+
The Do/While Loop is a variant of the while loop. This loop will execute the code block once before checking if the condition is true. It then repeats the loop as long as the condition is true:
2222

2323
```javascript
2424
do {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.