Code errors on pg 219 and 221
semmypurewal opened this issue · 2 comments
semmypurewal commented
Page number of error:
219, 221
Location on the page:
function(stream) in code blocks
Detailed description of error:
I believe the if statement shouldn't have the = in >=.
"if (tweet.text.indexOf("awesome") >= -1)"
This executes the if statement when we found awesome and when we didn't as well. The code back in chapter 6 does not have the =, too.
semmypurewal commented
Reported by Nick Litwin.
semmypurewal commented
Thanks, Nick! This is, indeed, an error. I've fixed it and given you credit here:
http://learningwebappdev.com/errata/chapter6/2014/04/20/chapter-6-indexOf-error.html
If you'd like me to link to your LinkedIn or Twitter profiles instead, let me know. I really appreciate your help!