No, at least as of version 5.1 of the ECMAScript language specification current modern browser JS is based of, there.
When you do
console.log( - what comes next is an
Itself, it contains an
An Assignment Expression is:
LeftHandSideExpression AssignmentOperator AssignmentExpression
A Conditional expression is a LogicalORExpression or a ternary, for completeness you are encouraged to investigate this part further but they don't really help us (it describes how things like
a || 3 for example are defined, and bracnhes to things like
a && 6).
Now, the other branch is
ConditionalExpressionNoIn which is the ternary operator. (That is, ?:, the shorthand if). Which also, a short investigation can show us only runs expressions.
On the other side, left hand side expressions allow function expressions, but nothing else that's really helpful for opening statements.
Now, on the other hand, a
var appears in two places. In a
VariableStatement, or in iteration constructs like for explicitly. Both of these in turn can not appear in the AssignmentExpression.