DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on

What's the output?

const result = -1 ? 'foo' ? null : -1 : 1;
console.log(result);
Enter fullscreen mode Exit fullscreen mode

.
.
.
.
.
.
.
.
.
.
.

Output: null


Thanks for reading 💙

Follow @codedrops.tech for daily posts.

InstagramFacebook

Micro-Learning ● Web Development ● Javascript ● MERN stack

codedrops.tech

Top comments (0)