+ 3
Number() method
Why does Number("0x11") return 17? Mind blown. Thanks.
2 Answers
+ 13
Its hexadecimal i.e base 16
Convert hex 0x11 to decimal
1Ă16^1+1Ă16^0
17
+ 4
Rstar Thank you so much đ I never would have guessed this!
Why does Number("0x11") return 17? Mind blown. Thanks.