function isEvenNumber( num ) { return !(num & 1) }
alert([
isEvenNumber( 1 ),
isEvenNumber( 2 ),
isEvenNumber( 3 ),
isEvenNumber( 4 ),
isEvenNumber( 5 ),
isEvenNumber( "4" ),
isEvenNumber( "5" ),
isEvenNumber( 1.1 ),
isEvenNumber( 2.1 )
].join("\n"));
|