Count of N | Function to return the count of N - digit palindrome numbers ; Driver code
function nDigitPalindromes ( n ) { return ( 9 * Math . pow ( 10 , parseInt ( ( n - 1 ) / 2 ) ) ) ; } var n = 2 ; document . write ( nDigitPalindromes ( n ) ) ;