I was looking for a way of detecting the current browser using javascript code and came across an answer mentioned here at the same forum.
My question is: What is the meaning of !! (double exclamation symbol).
The value !!document.documentMode is returning a boolean value depending on whether the current browser is IE or not and the value document.documentMode returns the version of the IE browser.
I want to understand what !! actually signifies.
 
     
    