...
- Strings can be coerced to numbers (integers or reals) and regular expressions. If the string is not parsable as a number, the result is
null.
The empty string parses as 0. - Numbers can be coerced to strings.
- Regular expressions can be coerced to strings.
- Any expression can be coerced to Boolean.
null
and false can be coerced to 0, andtrue
can be coerced to1
...