How can I force JavaScript to keep 0
before numbers in the Int type?
I have some numeric map codes which all starting by 0
so I need to pass them as a part of the number for each code.
var mapcode = "042";
mapcode = parseInt(mapcode);
console.log(mapcode);