firescript
Version:
Firescript language
30 lines (22 loc) • 309 B
Markdown
While statement
===============
A while statement loops through its `body` as long as its `test` evaluates to true.
Syntax
------
```
while [test]
[body]
```
#### Firescript
```fire
while i < 100
i += 1
console.log(i)
```
#### Javascript
```js
while (i < 100) {
i += 1;
console.log(i);
}
```