DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on • Originally published at codedrops.tech

Output of `3 > 2 > 1`?

 console.log(3 > 2 > 1);
Enter fullscreen mode Exit fullscreen mode

Output:- false

It starts from left to right
so 3 > 2 equals true

true > 1 is equivalent to 1 > 1 which is false


Thanks for reading 💙

Follow @codedrops.tech for daily posts.

InstagramTwitterFacebook

Micro-Learning ● Web Development ● Javascript ● MERN stack ● Javascript

codedrops.tech

Top comments (0)