Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

double bitwise not shorthand javascript

 // Double Bitwise NOT Shorthand
// Longhand:
console.log(Math.floor(4.9) === 4)  //true

// Shorthand:
console.log(~~4.9 === 4)  //true
 
PREVIOUS NEXT
Tagged: #double #bitwise #shorthand #javascript
ADD COMMENT
Topic
Name
1+2 =