Javascript - Grouping Operator ()

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

1 - Note

Grouping Operator () for expression. Parens are also used to define the function signature

Parens () can’t contain statements.

Advertising

3 - Example

console.log("Hello "+( typeof userName !== 'undefined' ? userName : "Anonynmous") + ", Welcome ! ");

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