The remaining operators apply to topics considered in other chapters. We’ll include them here for quick reference only and describe their usage fully in those chapters.
If you’re planning to develop large-scale systems in which every iota of memory, calculation speed, and transfer-rate optimization makes a meaningful difference in performance, read about the bitwise operators in Chapter 15. Otherwise, use the Boolean logical operators, which perform the same tasks the bitwise operators do, albeit in a less optimized way.
The typeof operator is used to determine the datatype of an expression. It takes one operand, as follows:
operand may be any legal expression.
The return value of the
typeof operation is a
string indicating the datatype of the evaluated
operand. See Chapter 3
for more details.
operator creates a new composite datum
— either an array or an object. The object may be a member of a
built-in class or a user-defined class. The syntax for
We use the
operator to remove an object, an
object property, an array element, or variables from a script. The
identifier is not a data container
(variable, property, or element), the
delete operation fails and returns the value ...