Allewyn


#1

What is the symbol “!” used for? I’ve seen it many times but I don’t know what it means.


#2

In JavaScript, ! is the Bitwise operator, NOT.

console.log(! true);    // ->  false

NOT is a negator, meaning true becomes false, and false becomes true.

In many languages, when combined with = it means NOT EQUAL TO.

12 !== 13    // true    JavaScript

12 != 13     #  True    Python

#3

Thank you for the help :slight_smile: