loading...

What's the output?

318097 profile image Mehul Lakhanpal ・1 min read
const result = -1 ? 'foo' ? null : -1 : 1;
console.log(result);

.
.
.
.
.
.
.
.
.
.
.

Output: null


Thanks for reading 💙

Follow @codedrops.tech for daily posts.

InstagramFacebook

Micro-Learning ● Web Development ● Javascript ● MERN stack

codedrops.tech

Discussion

pic
Editor guide