I don't know why JS has a bad rep
When using parseInt
, JS assumes that if the number starts with 0 then it is treated as an octal. WTF!
Wednesday March 7, 2018
When using parseInt
, JS assumes that if the number starts with 0 then it is treated as an octal. WTF!
Wednesday March 7, 2018