Function to check whether the given number is Armstrong number or not
function isArmstrong ( x ) { let n = order ( x ) ; let temp = x ; let sum1 = 0 ; while ( temp != 0 ) { let r = temp % 10 ; sum1 = sum1 + Math . pow ( r , n ) ; temp = temp / 10 ; }