Skip to content

Commit 54f8860

Browse files
committed
Go over Chapter 15
1 parent d9c44b4 commit 54f8860

File tree

10 files changed

+1160
-1290
lines changed

10 files changed

+1160
-1290
lines changed

04_data.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,17 @@ console.log(" okay \n ".trim());
956956
// → okay
957957
```
958958

959+
{{index "repeat method"}}
960+
961+
A string can be repeated with the `repeat` method, which creates a new
962+
string containing multiple copies of the original string, glued
963+
together.
964+
965+
```
966+
console.log("LA".repeat(3));
967+
// → LALALA
968+
```
969+
959970
{{index ["length property", "for string"], [string, indexing]}}
960971

961972
We have already seen the string type's `length` property. Accessing

11_async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ result of the `await` expression.
10121012

10131013
## The event loop
10141014

1015-
{{index "asynchronous programming", scheduling, "event loop"}}
1015+
{{index "asynchronous programming", scheduling, "event loop", timeline}}
10161016

10171017
Asynchronous programs are executed piece by piece. Each piece may
10181018
start some actions, and schedule code to be executed when the action

0 commit comments

Comments
 (0)