I have a problem, I build a very simple javascript search for postal codes. I am using JS Numbers because I want to check if the passed number (search term) is less||equal o
Represent them as a String. Outside of strict mode, a leading zero denotes an octal number otherwise.
String
Also, why would a leading zero have any significance when calculating numbers? Just use parseInt(num, 10) if you need to.
parseInt(num, 10)