"0123Test" is a better number-containing string for testing, to catch out things that try to interpret the string as a number first and then as a string if that fails. For example, JS's insane parseInt function will give you 123 for "0123Test".
> parseInt("0123Test")
123
> 0123
83
parseInt is actually the adult in the roomWhy does js even support octal? I never found octal particularly useful. Speak hexadecimal or die
> parseInt('0123Test', 8)
83
you could do it like this, otherwise it uses the default value for the base parameter.Thanks!