JavaScript Booleans

You can use the Boolean() function to find out if an expression (or a variable) is true: