I want to declare
var a = 0213;
document.write(a);
but it not work .when console.log(a); variable different.
I want to declare
var a = 0213;
document.write(a);
but it not work .when console.log(a); variable different.
Numbers with a leading 0
are interpreted as octal (base 8).
Octal 0213
== decimal 139
.
If you need the value 213
(decimal), leave off the leading 0
.