loading...

Output of `3 > 2 > 1`?

318097 profile image Mehul Lakhanpal Originally published at codedrops.tech ・1 min read
 console.log(3 > 2 > 1);

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

Discussion

pic
Editor guide