By Developers, For Developers
| PDF Pg | Paper Pg | Type | Description | Fixed on | Comments |
|---|---|---|---|---|---|
| 8 | TYPO | “The code does not produces the intended or desired output, but instead outputs” should read - “The code does not produce the intended or desired output, but instead outputs” | 2018-03-04 | ||
| 10 | SUGGEST | “Let’s first create a sample script with a few smelly code in it:” This reads badly, should be rewritten. Perhaps “…a sample script with some smelly code in it”, or simply, “…some badly written code in it”. | 2018-03-04 | ||
| 11 | TYPO | “Once you’ve install ESLint” should read - “Once you’ve installed ESLint” | 2018-03-04 | ||
| 71 | TYPO | Near the bottom of the page “arror” should be “arrow” | 2018-03-04 | ||
| 245 | TYPO | “since both have a minimual impact on memory usage.” should be: “since both have a minimal impact on memory usage.” | 2018-03-13 | ||
| 61 | TYPO | In flowchart - “returned object’s done is true?” - true and false branches are the wrong way round. Done = true should end the iteration. | 2018-03-13 | ||
| 73 | TYPO | “drop the parenthesis” => " drop the parentheses" since it’s referring to “(”and “)” but not the entire phrase “(subject)” | 2018-03-13 | ||
| 111 | ERROR | Hi, I believe that in the context of destructuring, page 111 and 112, it is the “spread” operator that saves the day - not the “rest”. The code is correct, as (you know), these two look the same but are used in different contexts.. | 2018-03-13 | ||
| 58 | ERROR | In the script fragment, the for loop reads: for(const superHero of superHeroes) { This was confusing upon reading, and indeed does not work for me. I’m not expert, but rationalizing about it, should it be something more like: for (const superHero of superHeros) { | 2018-04-02 | Hi Richard, \n \n \nThank you for reporting. There are backticks in the code, one right after ( and one right before ) on the console.log() line. Without the backticks, the code will not work. \n \n \nCould you please take a look at the code when you get a chance and confirm it works with the backticks? \n \n \nThanks \n \n \nVenkat | |
| 195 | ERROR | For the solution to chapter 8, exercise 5, the base class should probably be: `class SpecialWorkChecker { Otherwise, the “isSpecial” solutions for PalindromeChecker and AlphabeticalChecker will always return true. This should probably be fixed on page 157, as well. Also, should this class be named “SpecialWordChecker” instead of “SpecialWorkChecker”? Finally, all lines processing ‘abe’ should probably say ‘abe’ in the trailing comments. As a suggestion, you could destructure “word” for the solutions for PalindromeChecker and AlphabeticalChecker instead of calling “word.split()”. For example: class PalindromeChecker extends SpecialWorkChecker { | 2018-04-01 | ||
| 25 | TYPO | Last paragraph, 4th sentence: change “… you can rely instead OF the language feature to limit scope.” to “… rely instead ON the …”. Actually I prefer “… rely instead on language features …” since we are talking about let, const, modules, and I guess objects, too.—George S. Cowan | 2018-04-08 | ||
| 26 | TYPO | “code is easier to reason” -> “code is easier to reason about” | 2018-04-08 | ||
| 186 | 175 | TYPO | Last sentence of second paragraph begins “A code that returns a promise”. In the context of programming, “code” is an uncountable noun; it should just read “Code that returns a promise”. | ||
| 197 | 186 | TYPO | Second paragraph, first sentence: “The all() static method of promise”.. that should be “Promise” styled as a class name. | ||
| 71 | TYPO | “This all means means” | |||
| 57 | TYPO | “To retrieve date, use the get() method”. Should be data instead of date. | |||
| 27 | 8 | ERROR | When I run the code in the browser, outer calls inner. Because “i” isn’t set as “const” or “let”, it becomes a global variable. The book says that that value goes to 5 when it runs. Once it returns to outer, the value is above 3 so it only prints 1 thru 5 once You can check this value by adding an additional console.log() command. I have the code printed below from chrome’s console: const outer = function () { const inner = function () { console.log(i); | ||
| 238 | ERROR | [before, after = 0] = beforeAndAfter(0); The answer for this is incorrect. With the code the is given the result is 1 and 0. The first line needs to be changed to: | |||
| 237 | SUGGEST | In the answer, the line | |||
| 237 | SUGGEST | Maybe in the next edition, the answer to exercise 5 can be changed to | |||
| 132 | TYPO | In the last sentence of the paragraph before the “Wrapping Up” section, there is an “s” where it shouldn’t be. The sentence reads: | |||
| 185 | TYPO | The last bulleted item states “Then then-catch syntax …” which I believe should be “The then-catch symtax …” | |||
| 231 | TYPO | Exercise 3 solution. The text says “Runs the code in struct mode”. It should say “strict”, rather than “struct”. | |||
| 80 | TYPO | For the card deck, one of the suits is spelled ‘Spaces’ instead of ‘Spades’. Maybe this is intentional, or maybe not. | |||
| 175 | ERROR | “Calls to functions that return promises are nonblocking. The control will immediately flow to the next statement.” That’s not true, here is a counter-example: const returnPromise = function () { const promise = returnPromise(); If the sentence was true, ‘Promise { | |||
| 175 | ERROR | “Since the calls are asynchronous…” The call aren’t asynchronous, the messages will always be printed in the same order. This can be verified by placing ‘while(true);’ statements in different locations of the program. For example, if the result for the first promise can’t be printed due to such a statement, the result (i.e. the error) of the second promise is never printed. | |||
| 217 | ERROR | “It turns out that Map.prototype’s prototype is an empty object.” It’s not… It’s prototype is Object.prototype. Thus the following code prints “true”. console.log(Reflect.getPrototypeOf(Map.prototype) === Object.prototype) And by replacing the prototype of Map.prototype, this code leads to an error: const proxy = new Proxy(Map.prototype, { console.log(languagesAndAuthors.toString()); | |||
| 89 | 72 | TYPO | Typos near bottom of page in navigator.geolocation.getCurrentPosition: two instances of “innherHTML” should be “innerHTML” |