๐ฐdouble tilde (~~)
Last updated
Was this helpful?
Last updated
Was this helpful?
JS โฉ statement โฉ expression โฉ operator โฉ double tilde (~~)
nearest integer towards 0.
๐ก it's not really an operator, it's just ~~x === ~(~x)
.
๐ bitwise not (~) | ๐ 2's complement
โ๏ธ (~~) vs. Math.trunc()
โ bitwise operator โฉ bitwise not (~) - invert bits.
โ unary arithmetic operator โฉ unary plus (+)
โ unary logical operator โฉ logical not (!)