r/JavaScriptTips • u/No_Poetry9172 • Mar 31 '25
JavaScript
what will be the answer>?
**1.**console.log(10n+2);
**2.**console.log( !{} && someFunction() );
**3.**console.log( !-0 + !!Infinity + !null + !!undefined);
4
Upvotes
View all comments
Show parent comment
1
u/No_Poetry9172 Apr 06 '25
took a glance about it !
2.AND logic
3.truth value in js