Non-Boolean Results
Thursday, January 31st, 2008If statements in JavaScript evaluate the condition test as a boolean value. That means that it is either true or it is false. Of course of you don’t start with a boolean value or perform a comparison in order to create a boolean value then the condition will not be a boolean. When this happens JavaScript will convert whatever the value actually is into either true or false. In this seventh JavaScript decision making tutorial we look at how JavaScript decides what values to convert to true and what values to convert to false.
