Largest Even and Odd N | Function to print the largest n - digit even and odd numbers ; Driver code
function findNumbers ( n ) { var odd = Math . pow ( 10 , n ) - 1 ; var even = odd - 1 ; document . write ( " " + even + " " ) ; document . write ( " " + odd ) ; } var n = 4 ; findNumbers ( n ) ;