Javascript Meaning Of Double Exclamation Mark
Think of it.
Javascript meaning of double exclamation mark. What does the double exclamation mark mean. In javascript the exclamation mark symbol called a bang is the logical not operator. Actually it is two operators right next to each other.
What is double exclamation marks in javascript mean. I documented this on my blog for quick reference as i keep running into it. The double exclamation mark in javascript basically means convert to boolean invert then invert again.
If you have ever noticed a double exclamation mark in someone s javascript code you may be curious what it s for and what it does. Placed in front of a boolean value it will reverse the value returning the opposite. So you re converting a value to a boolean then inverting it then inverting it again.
Is there even such an operator in javascript. Double bang or double exclamation operator or not null assertion operator is used with variables if you are sure that the value will be always non null if a value is null and if we are using not null assertion operator it will throw one null pointer exception so we should use this operator only if we want to throw one exception always if any null value found. Typeof javascript static javascript is not a static language rather it is a dynamic language.