Errata

JavaScript Cookbook

Errata for JavaScript Cookbook

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
ePub, Page Chapter 6
Just above "Providing a Default Parameter" section

Is missing some hyperlinks in Chapter 6. here is the text to search on:

"Chapter 5 has numerous examples that use arrow syntax to pass short functions to array-processing methods. See, for instance, Recipes , , and ."

Anonymous  Jul 12, 2022 
PDF Page 272
last paragraph, bottom of page

in book it is written:
If you’re interested in accessing all img elements that are immediately followed by a paragraph, use:

const imgs = document.querySelectorAll('img + p');

----
wrong selector or wrong description
img + p, will select all paragraphs not images

Anonymous  Aug 26, 2022 
Printed Page 442
2nd Paragraph under Discussion.

From Text:
"We cover async/await in detail in Chapter 10:"

Should read:
"We cover async/await in detail in Chapter 9:"

* Chapter 9 in the book is async programming: "Chapter 9: Asynchronous Programming"

* Chapter 10 in the book is errors and testing: "Chapter 10: Errors and Testing"

Anonymous  Mar 31, 2023