Errata

The Little Book on CoffeeScript

Errata for The Little Book on CoffeeScript

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
Printed, Page 7
1st paragraph

The example in Loops and Comprehension generates invalid javascript:

names = sam: seaborn, donna: moss
alert("#{first} #{last}") for first, last of names

generates

var first, last, names;

names = {
sam: seaborn,
donna: moss
};

for (first in names) {
last = names[first];
alert("" + first + " " + last);
}


This javascript cannot be run: reference error on variable seaborn.

Anonymous  Jul 31, 2014 
Mobi Page 62%
Stich It Up

I tried the code sample in this section using the latest versions of node(0.8.16), and express(3.0.5).

I recorded the changes that need to be made for that code to be compatible with those versions here: https://gist.github.com/4393079/revisions

Apologies if this was the incorrect destination for such feedback.

John Keyes  Dec 27, 2012