Originally Posted by AndrewGSW
var result = "I'm coding like a champ!".length > 10 ;
alert( result );
That might display 1 rather than true:
If you convert a boolean to a number, you'll get 1 or 0. If the result of an expression is a boolean, then that is what it will display.
alert( typeof ( "I'm coding like a champ!".length > 10 ) )