+ 2
What is the meanin of "~~" sign?
i see codes use: ~~Math.random... What is the use?
4 RĂ©ponses
+ 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!đđđ