Type conversion
For example, given the expression "foo" + 1
, the Number
1
is implicitly converted into a String
and the expression returns "foo1"
. Given the instruction Number("0x11")
, the string "0x11"
is explicitly converted to the number 17
.
See also
- Type conversion (Wikipedia)
- Glossary