getify / You-Dont-Know-JS

A book series on JavaScript. @YDKJS on twitter.
Other
177.97k stars 33.41k forks source link

[Scope & Closures] Practice Closure 3 Textual Issue #1716

Closed hochan222 closed 3 years ago

hochan222 commented 3 years ago

I already searched for this issue

Edition: (1st or 2nd) 2nd

Book Title: Scope & Closure

Chapter: Practice

Section Title: Closure 3

Problem: image

useCalc(calc,"*8="); // *5=128

must be

useCalc(calc,"*8="); // *8=128

Of course, the author said that all minor errors will be corrected, but he says he will not make revised versions of future books (for next chapter), so I leaves it to help with the inspection. I uploaded it because it was not in the issue.

In addition, I read well. This book gave me a fresh perspective on understanding closures. Thank you.

Pull Request #1717