[thelist] Why does this JS code work the way it does???

tim tim at hyperlinkage.com
Tue Dec 12 20:19:41 CST 2006

Matt Warden wrote:
>    if ( ...some booleans statement... ) {
>        return false;
>    }
>    else {
>        return true;
>    }

This is a big frustration for many many many many many many programmers.

You are evaluating a boolean only to return a boolean value, so just 
return the result of the original comparison.


More information about the thelist mailing list