You are viewing a single comment's thread. Return to all comments →
When you negate '!' a value diferent than 0 you will get 0, then if you negate 0 you will get 1 so..
!anyNonZeroVal == 0 !0 == 1
!!anyNonZeroVal == 1;
Seems like cookies are disabled on this browser, please enable them to open this website
Birthday Cake Candles
You are viewing a single comment's thread. Return to all comments →
When you negate '!' a value diferent than 0 you will get 0, then if you negate 0 you will get 1 so..
!anyNonZeroVal == 0 !0 == 1
!!anyNonZeroVal == 1;