Javascript Meaning Of Two Exclamation Marks
Exclamation points are used to express shock or surprise but two exclamation points show an even more extreme form of shock that one exclamation point is just not enough to express.
Javascript meaning of two exclamation marks. It s short way to cast a variable to be a boolean true or false value. Is there even such an operator in javascript. History the exclamation point was first used by printers at the end of the 15th century according to thomas mackellar in his 1885 book the american printer.
I make a note so that not forgot. In javascript the exclamation mark symbol called a bang is the logical not operator. Meaning of double exclamation mark emoji.
What is double exclamation marks in javascript mean. A manual of typography. Meaning of two exclamation marks published on.
Returns false try it the exclamation mark doesn t have to be stuck to the variable or. Typeof javascript static javascript is not a static language rather it is a dynamic language. Exclamation mark this will also return the boolean opposite of the return value of the function in this case true because undefined is true.
I was confused a little when i found two exclamation marks in javascript code. Meaning of two exclamation marks javascript. What does the double exclamation mark mean.
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. Returns true of course alert javascriptiscool. This post is also available in.