What does ~~ (double tilde) do in Javascript? code example
Example 1: What does ~~ (“double tilde”) do in Javascript?
What does ~~ (“double tilde”) do in Javascript?
Example 2: What does ~~ (“double tilde”) do in Javascript?
It removes the fractional part of the number.
Eg: ~~2.35 = 2