For example : input:0010 [number] output: 0010 [string]
I know the 0010
in JavaScript will be regarded as octal, so is it possible to code a function to convert it to string? The similar questions on stackoverflow had said how to convert known number of the leading zero input , but I haven't found any solution for unknown zero number input.
Similar questions :