+ 2
What is the meanin of "~~" sign?
i see codes use: ~~Math.random... What is the use?
4 Answers
+ 4
~ is the bitwise NOT operator. First, it gets rid of the decimal place (if any), then, it ānotsā the number. Two ~s would: first get rid of the decimal place, second ānotā the number, then third ānotā the new number again. That would get rid of the decimal place, so itās the same as Math.floor.
Further info on bitwise NOT:
https://www.sololearn.com/learn/4076/?ref=app
+ 3
Jingga Sona šŗ [HOWLING] No worries! Also... š¤ me chicken [PECKING]!
+ 2
Rowsej lol šš
+ 1
Rowsej oh i get it! Thanks again!ššš