+ 3
Number() method
Why does Number("0x11") return 17? Mind blown. Thanks.
2 Respostas
+ 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.