minor fixes
This commit is contained in:
parent
ff042a0319
commit
e85e48f8d0
4 changed files with 5 additions and 5 deletions
|
@ -256,7 +256,7 @@ For even values of `i`, the `continue` directive stops executing the body and pa
|
||||||
````smart header="The `continue` directive helps decrease nesting"
|
````smart header="The `continue` directive helps decrease nesting"
|
||||||
A loop that shows odd values could look like this:
|
A loop that shows odd values could look like this:
|
||||||
|
|
||||||
```js
|
```js run
|
||||||
for (let i = 0; i < 10; i++) {
|
for (let i = 0; i < 10; i++) {
|
||||||
|
|
||||||
if (i % 2) {
|
if (i % 2) {
|
||||||
|
|
|
@ -15,6 +15,6 @@ function loadJson(url) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
loadJson('no-such-user.json') // (3)
|
loadJson('no-such-user.json')
|
||||||
.catch(alert); // Error: 404
|
.catch(alert); // Error: 404
|
||||||
```
|
```
|
||||||
|
|
|
@ -58,7 +58,7 @@ alert( new TextDecoder().decode(binaryString) ); // Hello
|
||||||
|
|
||||||
The syntax is:
|
The syntax is:
|
||||||
|
|
||||||
```js run
|
```js
|
||||||
let encoder = new TextEncoder();
|
let encoder = new TextEncoder();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue