One of the potential problems with a dynamically typed language, such as JavaScript is working with booleans. Sometimes a boolean value is 1, "1" or true, even a string like "hello" could be true!