George Jempty
Member since Jan 7, 2016
- Profile: /members/12996-george-jempty.htm
- Comments: 2
Recent Blog Comments By George Jempty
-
The Best Way To Compute The Average Age Of Cat Owners In Functional Programming
Posted on Jan 7, 2016 at 1:27 PM
Yeah the optional second argument is something to consider with parseInt() and I indeed ran into one of those octal issues back in 2001 IIRC. Speaking of magic though, I rely on some of parseInt's magic, such as ignoring any trailing non-digit input -- it's really great for instance when your input... read more »
-
The Best Way To Compute The Average Age Of Cat Owners In Functional Programming
Posted on Jan 7, 2016 at 11:46 AM
Do you also advocate the usage of parseInt() for converting a string to an integer, rather than the unary + operator, or multiplying by 1, since parseInt() more clearly expresses intent? I myself do.... read more »