![]() |
![]()
Returns the
null value. null is typically
used to denote an object variable with no value. However, a variable
which has never been assigned will have the value undefined .
When converted to a number,
Returns the
undefined value. Unassigned variables
contain the undefined value and unassigned properties also
contain the undefined value.
When converted to a number,
Returns the boolean
true value.
When converted to a number,
Returns the boolean
false value.
When converted to a number,
Returns a decimal floating point number. The precision of
the number is 64 bits, the same as Java's double.
Returns a hexidecimal number.
Returns an octal integer.
Returns a string literal. Strings may contain any
character except the newline characters. Non-printable characters are
included in the string by escaping the character as in the following table.
Returns a string literal String literals delimited by
'
' and " " are equivalent. The script
writer can choose either to minimize the number of escapes.
Returns a string created by interpolating strings and
variables. The character '$' indicates that the value of the
following identifier should be inserted into the string.
Interpolated strings let the script writer create strings more clearly
than the standard addition operator.
Returns a multiline interpolated string terminated by
.
Because normal string literals cannot have newlines in them, creating long multiline strings gets messy and all the syntax for adding the lines together gets in the way of the string itself. Multiline strings eliminate extraneous syntax, allowing the script to clearly express the programmer's intentions.
Returns a new object with assigned properties.
It is equivalent to the following:
The Object toSource call returns a string using the object literal format.
Returns a new array with assigned values
It is equivalent to the following:
The Array toSource call returns a string using the array literal format.
Returns a regular expression literal.
See regexp for a complete description of
regular expression literals.
Returns a function closure.
See function for a complete description of
functions and closures.
|