The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Susan Harkins (424) [Avatar] Offline
#1
Please post errors in the published version of Get Programming with JavaScript here. We'll publish a comprehensive list for everyone's convenience. Thank you!

Susan Harkins
Errata Editor
204931 (1) [Avatar] Offline
#2
On page 43 of the book (pdf page 71 of 436) the link to listing 4.3 'Adding tax to find the total cost' (http://jsbin.com/kawocu/edit?js.console) is in reality directing to the listing 4.2 (http://jsbin.com/gewegi/edit?js,console), so the url link in the pdf is wrong.
428118 (1) [Avatar] Offline
#3
Before, I write about the line that is not correct, I'd like to write a statement about the book. This is a wonderful book. I've had and read two or three other books in this subject, none of them teaches you JavaScript the way that this book does. The layout is wonderful. Thanks.

The second line on page 347, listing 19.1,

<div id="news"> </news>

The closing tag must be </div>.
John Larsen (68) [Avatar] Offline
#4
Page 54, second line:

... the player display logic...

Should be

... the movie display logic...
John Larsen (68) [Avatar] Offline
#5
Page 60, Listing 5.3

The last annotation reads:

When the function "It's full of stars!" is assigned...

It should read:

When the function is called, "It's full of stars!" is assigned...
John Larsen (68) [Avatar] Offline
#6
Page 166, Section 10.3.2

The penultimate comment reads:

// The place is the specified direction.

It should read:

// The place in the specified direction.
John Larsen (68) [Avatar] Offline
#7
Page 176, Figure 11.3

The top right gray box says:

exits array []


It should say:

exits object {}
John Larsen (68) [Avatar] Offline
#8
Page 266, paragraph before listing 15.1.

It says:

In the listing 15.1...

It should say:

In listing 15.1...
John Larsen (68) [Avatar] Offline
#9
Page 336, Listing 18.7

The text box should be a self-closing tag to be consistent with the previous sections.

<input type="text" id="txtCommand">


...should be...

<input type="text" id="txtCommand" />
John Larsen (68) [Avatar] Offline
#10
Page 110, Table 8.1

The example for
forEach
ends with a curly brace:

}


It should also have a closing parenthesis and semicolon:

});
Susan Harkins (424) [Avatar] Offline
#11
Sammy's Dad (9) [Avatar] Offline
#12
Listing 13.17 and Listing 13.18 on jsbin:

https://jsbin.com/zikuta/edit?html,js,console

doesn't work. It produces a "ReferenceError: theCrypt is not defined"


To fix it, change the html from 'http' to 'https', like this:



<!-- spacer -->
<script src="https://output.jsbin.com/juneqo.js"></script>

<!-- Player constructor -->
<script src="https://output.jsbin.com/nubijex.js"></script>

<!-- Place constructor -->
<script src="https://output.jsbin.com/dofuci.js"></script>

<!-- Map code -->
<script src="https://output.jsbin.com/dipaxo.js"></script>

<!-- Game initialization -->
<script src="https://output.jsbin.com/fisupe.js"></script>


John Larsen (68) [Avatar] Offline
#13
526305 wrote:Listing 13.17 and Listing 13.18 on jsbin:

https://jsbin.com/zikuta/edit?html,js,console

doesn't work. It produces a "ReferenceError: theCrypt is not defined"


To fix it, change the html from 'http' to 'https', like this:



<!-- spacer -->
<script src="https://output.jsbin.com/juneqo.js"></script>

<!-- Player constructor -->
<script src="https://output.jsbin.com/nubijex.js"></script>

<!-- Place constructor -->
<script src="https://output.jsbin.com/dofuci.js"></script>

<!-- Map code -->
<script src="https://output.jsbin.com/dipaxo.js"></script>

<!-- Game initialization -->
<script src="https://output.jsbin.com/fisupe.js"></script>




Thanks. I've updated the code for the example on JSBin