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.

Instagram โ— Facebook

Micro-Learning โ— Web Development โ— Javascript โ— MERN stack

codedrops.tech

Top comments (0)