-1

I read ECMA documentation an found the ~ symbol in punctuators list.

When I should use this punctuator?

enter image description here

Edgaras Karka
  • 5,020
  • 10
  • 38
  • 84
  • Isn’t this just the bitwise not operator? – Sebastian Simon Dec 04 '16 at 14:32
  • see https://www.joezimjs.com/javascript/great-mystery-of-the-tilde/ – phooey Dec 04 '16 at 14:35
  • I see, you’ve asked about the `&` operator about half an hour ago as well. Seriously, the link to all the operators is _right there_ at the top of this post and you could’ve simply searched for any basic JS tutorial with an overview of operators. – Sebastian Simon Dec 04 '16 at 17:16

1 Answers1

1

~ a - Inverts the bits of its operand.