You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
see <ahref="https://eloquentjavascript.net/2nd_edition/errata.html">this
21
-
page</a>. To report a problem that is not listed
22
-
here, <ahref="mailto:marijnh@gmail.com">send me an email</a>.</p>
16
+
<p>These are the known mistakes in the <strong>fourth edition</strong>
17
+
of the book. For errata in other editions, see these pages: <ahref="https://eloquentjavascript.net/1st_edition/errata.html">first</a>, <ahref="https://eloquentjavascript.net/2nd_edition/errata.html">second</a>, <ahref="https://eloquentjavascript.net/3rd_edition/errata.html">third</a>. To report a problem that is not listed
18
+
here,<ahref="mailto:marijn@haverbeke.berlin">send me an email</a>.</p>
19
+
20
+
<p><em>No issues found yet.</em></p>
21
+
22
+
<!--
23
23
24
24
<p>Issues whose page number is followed by an ordinal number are only
25
25
present up to the print denoted by that number. I.e. those followed by
@@ -30,107 +30,6 @@ <h2>Chapter 2</h2>
30
30
<p><strong>Page 34</strong> (1st) <em>Updating Bindings Succintly</em>: Where it
31
31
says <code>counter-</code> it should be <code>counter--</code>.</p>
32
32
33
-
<h2>Chapter 5</h2>
34
-
35
-
<p><strong>Page 91</strong> (3rd) <em>Composability</em>: Due to an initial
36
-
mistake in the script data set, the results of the computations on
37
-
this page differ from the ones with the current, corrected data. The
38
-
average year for living scripts should be 1165, the average for
39
-
non-living scripts should be 204.</p>
40
-
41
-
<h2>Chapter 6</h2>
42
-
43
-
<p><strong>Page 111</strong> (2nd) <em>Inheritance</em>: In the second
44
-
paragraph below the example code, instead of “<code>content</code>
45
-
method”, the text should say “<code>element</code> function”.
46
-
47
-
<h2>Chapter 8</h2>
48
-
49
-
<p><strong>Page 134</strong> (2nd) <em>Error Propagation</em>: In the third
50
-
paragraph of the section, a function <code>promptInteger</code> is
51
-
referred to. The function is actually
52
-
called <code>promptNumber</code>, and the word “whole” should be
53
-
dropped from the sentence (it accepts non-whole numbers, too).</p>
54
-
55
-
<h2>Chapter 10</h2>
56
-
57
-
<p><strong>Page 168</strong> (1st) <em>Modules as Building Blocks</em>: In “each
58
-
needs it own private scope“, it should say “<em>its</em> own private
59
-
scope“.</p>
60
-
61
-
<h2>Chapter 11</h2>
62
-
63
-
<p><strong>Page 189/190</strong> (4th) <em>Networks are Hard</em>: The text
64
-
under the code that defines <code>request</code> claims the function
65
-
will give up after four attempts and a second. In fact, it gives up
66
-
after three attempts, in three-quarter second.</p>
67
-
68
-
<h2>Chapter 14</h2>
69
-
70
-
<p><strong>Page 231</strong> (5th) <em>Moving Through the Tree</em>: Below
71
-
the code example, the text claims
72
-
that <code>for</code>/<code>of</code> loops don't work on DOM child
73
-
lists. But in current (even as of the book's release) browsers they
74
-
do.</p>
75
-
76
-
<p><strong>Page 234</strong> (2nd) <em>Creating Nodes</em>: In the
77
-
code, “edition” is misspelled as “editon”.</p>
78
-
79
-
<h2>Chapter 15</h2>
80
-
81
-
<p><strong>Page 255</strong> (7th) <em>Mouse Motion</em>: The second
82
-
paragraph on the page claims that you can isolate a button from
83
-
the <code>buttons</code> bitmask with the remainder operator, but that
84
-
doesn't really work (you'd also need a division and a floor, which
85
-
gets too obscure to go into in this chapter).</p>
86
-
87
-
<p><strong>Page 258</strong> (3rd) <em>Load Event</em>: The description of
88
-
the <code>beforeunload</code> claims that you just need to return a
89
-
string from your event handler. For handlers registered
90
-
with <code>addEventListener</code> you, in fact, need to
91
-
call <code>preventDefault</code> and set a <code>returnValue</code>
92
-
property to get the warn-on-leave behavior.</p>
93
-
94
-
<h2>Chapter 16</h2>
95
-
96
-
<p><strong>Page 271</strong> (8th) <em>Actors</em>: Near the bottom of the
97
-
page, the book incorrectly uses the term <em>phase</em> (of a sinus
98
-
wave) where it should say <em>period</em>.</p>
99
-
100
-
<p><strong>Page 278</strong> (8th) <em>Motion and Collision</em>: The code
101
-
that defines the <code>touches</code> method unintentionally (though
102
-
harmlessly) used <code>var</code> instead of <code>let</code> to
103
-
define variables.</p>
104
-
105
-
<p><strong>Page 285</strong> (2nd) <em>Pausing the Game</em>: The text
106
-
refers to the <code>arrow</code> binding, where it should
107
-
say <code>arrowKeys</code>.</p>
108
-
109
-
<h2>Chapter 19</h2>
110
-
111
-
<p><strong>Page 336</strong> (5th) <em>The State</em>: The text mentions the
112
-
property <code>fillColor</code> where it should
113
-
say <code>fillStyle</code> instead.
114
-
115
-
<h2>Chapter 20</h2>
116
-
117
-
<p><strong>Page 367</strong><em>A File Server</em>: The part that
118
-
talks about “the output stream to the request” should say “the stream
119
-
from the request” instead.</p>
120
-
121
-
<p><strong>Page 369</strong> (1st) <em>Directory
122
-
Creation</em>: <code>MKCOL</code> stands for “make collection”, not “make
123
-
column” as the book claims.</p>
124
-
125
-
<h2>Chapter 21</h2>
126
-
127
-
<p><strong>Page 373</strong> (3rd) <em>HTTP Interface</em>: There is a
128
-
superfluous closing brace at the end of the example JSON snippet.</p>
alt="Nextjournal" class=logo></a> and <ahref="https://www.holbertonschool.com/"><imgsrc="img/holberton.png" alt="Holberton School" class=logo></a>. The second edition
58
-
was supported by <ahref="backers.html">454 backers</a>, with
59
-
significant contributions
60
-
from <ahref="https://www.mozilla.org/en-US/"><imgsrc="img/mozilla_mini.png"
0 commit comments