0
what is ! in java script?
what is ! in java script?
2 ответов
+ 5
! Is not operator.
(3>6) // false
!(3>6) // true
+ 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.