in javascript what does mean code example
Example 1: ~~ in javascript
~~ used to convert some types to int (32 bit int)
Example 2: ~~ in javascript
~~'-1' = -1
~~true = 1
~~false = 0
~~5.6 = 5
~~ used to convert some types to int (32 bit int)
~~'-1' = -1
~~true = 1
~~false = 0
~~5.6 = 5