One of the potential problems with a dynamically typed language, such as JavaScript is working with booleans.