Javascript - Expression

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > ECMAScript - Grammar Standard

1 - 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
Advertising

3 - Management

3.1 - 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);

3.2 - Grouping

web/javascript/es/expression.txt · Last modified: 2019/02/16 17:40 by gerardnico