Javascript - Expression

About

Javascript language expression:

An expression produces a value whereas a statement will not.

And therefore, expressions can be:

  • passed where a variable is expected such as as function argument, assignment etc …
  • or returned

Management

Separator

JavaScript allows comma-separated expressions, which evaluate from left to right and return the value of their last subexpression:

y=(x="b",z="c");
console.log(y);

Grouping

Execution

Documentation / Reference


Powered by ComboStrap