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
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
07 Aug, 2023
Like Article
Save Article