Frequently used literals
Literals are like constants that you can include in expressions.
Literal type | Literal | Description |
---|---|---|
Boolean |
true |
A literal for true and false. |
– |
false |
– |
String |
“xxx” |
A group of characters. Strings are delimited with double quotes ("). To quote within a string, use a backslash (\) to precede the double quotes. |
– |
“xx\”x” |
– |
Integer |
Example: 13 |
A number without a decimal point or exponent. |
Float |
Example: 13.2 |
A number with a decimal point or exponent. |
Parent topic: Operators and literals