Try this:
var num = 040; console.log(num); // 32
With a leading zero, the number is interpreted as octal and 4 * 8 = 32.
4 * 8 = 32
2.1m questions
2.1m answers
60 comments
57.0k users