; (semicolon)
Separates expressions.
Syntax
-
expr1[; expr2[; expr3[; ...]]]-
expr1, expr2, expr3, ...are expressions
-
-
expr1[; expr2[; expr3[; ...]]];-
expr1, expr2, expr3, ...are expressions
-
Description
The semicolon operator is used to separate expressions. Its expressions are evaluated one at a time from left to right. The result of the combined expression is the result of its last part.
If the sequence ends with a semicolon, the result is a null object (which is not visible in the console). As a special case,
expr;
evaluates expr but suppresses its output. All side effects still occur, though.
The ; operator is implemented by the do function.