4 ms·
The error in the author's code seems to be better described as an "unnecessary function call" than a "stray parentheses". I spent more time looking for that str
by giblaz 8y ago
The error in the author's code seems to be better described as an "unnecessary function call" than a "stray parentheses". I spent more time looking for that stray parentheses than I should have before noticing the call to .title().
Very good article though.
- lozenge 8y agostr.title is a method, the code is correct - it's the fixed version.