Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

~~ in js

// ~~ used to convert some types to int (32 bit int)
// Examples
// ~~NaN = 0
// ~~'-1' = -1
// ~~true = 1
// ~~false = 0
// ~~5.6 = 5
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
7+4 =