by cdsanchez · 14y ago · 0 comments
And no, JavaScript is not a "non-typed language." AFAIK JavaScript is both dynamically and weakly typed. Being in the latter category does mean that it will implicitly convert values to other types in certain scenarios.
I don't understand why he would recommend unary as a replacement for casting. It obfuscates the intent of your code, which is especially concerning since this reads like a guide for beginners.
parseFloat("08") === parseFloat("09") === 0
http://stackoverflow.com/questions/850341