Type conversion - to number
undefined
converts to NaN
null
converts to +0
the string "0xFF" is interpreted as a hex number
a decimal number can also be converted
can also be converted with a simple + unary operator
Required Knowledge
- All unary operators (Unary Operators)
Related Katas
Type conversion
Difficulty Level
INTERMEDIATE
Stats
5 tests to solve