![Samantha Ming on Twitter: "TLDR - How the !! works in #JavaScript The first "!" coerce the value to a boolean and inverse it. The second "!" reverse it back. Hence the Samantha Ming on Twitter: "TLDR - How the !! works in #JavaScript The first "!" coerce the value to a boolean and inverse it. The second "!" reverse it back. Hence the](https://pbs.twimg.com/media/ERy24QBUEAAAWV9.jpg:large)
Samantha Ming on Twitter: "TLDR - How the !! works in #JavaScript The first "!" coerce the value to a boolean and inverse it. The second "!" reverse it back. Hence the
![types - In javascript, why is the string "true", after coercion, still not equal to boolean true? - Stack Overflow types - In javascript, why is the string "true", after coercion, still not equal to boolean true? - Stack Overflow](https://i.stack.imgur.com/eEcXt.png)
types - In javascript, why is the string "true", after coercion, still not equal to boolean true? - Stack Overflow
![boolean - In JavaScript, why is "0" equal to false, but when tested by 'if' it is not false by itself? - Stack Overflow boolean - In JavaScript, why is "0" equal to false, but when tested by 'if' it is not false by itself? - Stack Overflow](https://i.stack.imgur.com/mmvud.png)
boolean - In JavaScript, why is "0" equal to false, but when tested by 'if' it is not false by itself? - Stack Overflow
![boolean - In JavaScript, why is "0" equal to false, but when tested by 'if' it is not false by itself? - Stack Overflow boolean - In JavaScript, why is "0" equal to false, but when tested by 'if' it is not false by itself? - Stack Overflow](https://i.stack.imgur.com/MKgie.png)