Check whether a given number is even or odd | Returns true if n is even , else odd ; Driver code
function isEven ( n ) { return ( n % 2 == 0 ) ; } let n = 101 ; isEven ( n ) ? document . write ( " " ) : document . write ( " " ) ;