I need to convert 012345 to '012345'. toString() and String() removes 0. How can I reserve it?
The reason I am asking is because of this question: Write a JavaScript program that accepts a number as input and insert dashes (-) between each two even numbers. For example if you accept 025468 the output should be 0-254-6-8.