There are some things we donβt know about how theΒ ! operator works in Javascript. Basics TheΒ ! is a logical operator that will convert a value to its opposite boolean. Since JavaScript will coerce values, it will βconvertβ a value to its truthy/falsey form and return the opposite boolean value. When we perform theΒ ! operation on …
Continue reading “Understanding weirdness of the β!β bang operator in JavaScript”