What does ~~ (“double tilde”) do in Javascript?

JavaScript
What does ~~ (“double tilde”) do in Javascript?
Source

Also in JavaScript: