0

what is ! in java script?

what is ! in java script?

23rd Aug 2020, 9:22 AM
Ziyad Aldoumany
Ziyad Aldoumany - avatar
2 odpowiedzi
+ 5
! Is not operator. (3>6) // false !(3>6) // true
23rd Aug 2020, 9:24 AM
TOLUENE
TOLUENE - avatar
+ 3
The ! operator reverses the logical (true or false) state of the value. In this case it is the truthy or falsey value. This may seem odd, but it can be useful.
23rd Aug 2020, 9:24 AM
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗>
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗> - avatar