Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

~~ in Javascript

// ~~ used to convert some types to int (32 bit int)
// Examples
// ~~NaN = 0
// ~~'-1' = -1
// ~~true = 1
// ~~false = 0
// ~~5.6 = 5
 
PREVIOUS NEXT
Tagged: #Javascript
ADD COMMENT
Topic
Name
5+3 =