JavaScript Expressions Complete Reference
Last Updated :
07 Aug, 2023
JavaScript’s expression is a valid set of literals, variables, operators, and expressions that evaluate a single value that is an expression. This single value can be a number, a string, or a logical value depending on the expression.
Example:
Javascript
function * func() {
yield 1;
yield 2;
yield 3;
yield " - Geeks" ;
}
let obj = '' ;
for (const i of func()) {
obj = obj + i;
}
console.log(obj);
|
The Complete List of JavaScript Expressions is listed below:
JavaScript Primary Expressions
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...