...
/Conditional, Comma, typeof, and instanceof Operators
Conditional, Comma, typeof, and instanceof Operators
In this lesson, we will discover a multitude of concepts: conditional, comma, typeof, and instanceof operators. Let's begin!
We'll cover the following...
Comma operator #
JavaScript uses the comma operator to allow the execution of more than one operation in a single statement, as in this example:
var val1 = 1, val2 = 2, val23 = 23;
You can use this operator in expressions, too. In this way, the comma operator returns the value ...