Skip to content

Commit 8857c1c

Browse files
committed
Pass over Chapter 9
Add info about y and u flag, clean up some examples, small tweaks.
1 parent c034d43 commit 8857c1c

5 files changed

Lines changed: 512 additions & 519 deletions

File tree

02_program_structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ is used like this:
257257
prompt("Enter passcode");
258258
```
259259

260-
{{figure {url: "img/prompt.png", alt: "An prompt dialog",width: "8cm"}}}
260+
{{figure {url: "img/prompt.png", alt: "A prompt dialog", width: "8cm"}}}
261261

262262
{{index parameter, [function, application]}}
263263

04_data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ console.log(" okay \n ".trim());
950950
We have already seen the string type's `length` property. Accessing
951951
the individual characters in a string looks like accessing array
952952
elements (with a caveat that we'll discuss in [Chapter
953-
5](05_higher_order.html#code_points)).
953+
5](05_higher_order.html#code_units)).
954954

955955
```
956956
let string = "abc";

05_higher_order.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ The `some` method on arrays is another higher-order function. It takes
605605
a test function and tells you if that function returns true for any of
606606
the elements in the array.
607607

608-
{{id code_points}}
608+
{{id code_units}}
609609

610610
But how do we get the character codes in a string?
611611

0 commit comments

Comments
 (0)