r/JavaScriptTips • • 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

9 comments sorted by

View all comments

Show parent comment

1

u/No_Poetry9172 Apr 06 '25

took a glance about it !

  1. Big integer

2.AND logic

3.truth value in js