What does !1 and !0 mean in Javascript?

The ! is the boolean NOT operator.

NOT (!): toggles a statement from true to false or from false to true.

!0 = true
!1 = false

This is a brilliant introduction to boolean operators and their use in javascript.

Leave a Comment