semmypurewal / LearningWebAppDev

Examples from the book "Learning Web Application Development".
http://learningwebappdev.com
268 stars 356 forks source link

Inconsistent Function Names in Ch 4 and Ch 5 #68

Open semmypurewal opened 9 years ago

semmypurewal commented 9 years ago

From Mike Hennessey:

Typo in the print version:

Ch. 5, p. 179 reads: "remember that I had you write a function called containsNTimes"

The above sentence is a reference to Ch. 4, p. 146, which reads:

"Write a function that accepts three arguments and returns true if the array contains the element n times, where n is the third argument:"

"arrayContainsNTimes(["a","b","a","c","a"], "a", 3);"

So the function name has to be changed in one place or the other, to be consistent.

semmypurewal commented 9 years ago

Added official errata for this here:

http://learningwebappdev.com/errata/chapter5/2015/03/29/inconsistent-function-names.html