marijnh / Eloquent-JavaScript

The sources for the Eloquent JavaScript book
https://eloquentjavascript.net
3.03k stars 799 forks source link

Chapter 9 related typos #279

Closed joulecpa closed 6 years ago

joulecpa commented 6 years ago

http://eloquentjavascript.net/3rd_edition/09_regexp.html#p_YUOJEGEtSI

The example prior uses the exec function but this following line refers to the match function.

http://eloquentjavascript.net/3rd_edition/09_regexp.html#p_mwlBKfUu5D

whether it is a comment or an emty line

http://eloquentjavascript.net/3rd_edition/code/#9.3

The solution in the sandbox has a ReferenceError: s is not defined error when run due to having s instead of str

marijnh commented 6 years ago

Thanks. Should be better with patch 9e08a7e