JavaScript ~~

added by JavaScript Kicks
12/11/2019 7:24:10 AM

390 Views

JavaScript is loaded with tiny syntax tricks to accomplish useful effects. For example, explore any codebase to see !! being used to convert a value to a boolean value. Have you seen ~~ before? Let's have a look at what it does! We can employ ~~ to trigger a Math.floor operation with those special characters: ...


0 comments