JavaScript
x
2
1
var a = true;
2
How to get opposite value of a
(false) and vice versa?
Advertisement
Answer
JavaScript
1
5
1
>>> a = true;
2
true
3
>>> !a;
4
false
5
var a = true;
How to get opposite value of a
(false) and vice versa?
>>> a = true;
true
>>> !a;
false