How to get opposite boolean value of variable in Javascript javascript s.webbandit asked 07 Oct, 2012 var a = true; How to get opposite value of a (false) and vice versa? AdvertisementAnswer >>> a = true; true >>> !a; false