Condition Operator | SoloLearn: Learn to code for FREE!

0

Condition Operator

If we want all our conditions must be true to return the function, then what is the operator used to check all the conditions are true or not.

1/9/2019 2:56:50 PM

Ansuman Dhar

1 Answer

New Answer

+2

Use the AND operator (&&): document.write((4 > 2) && (10 < 15)); // Output: true