code: function reverseOfNumber(number) {
          if (isNumber(number)) {
              var stringNumber = numberToString(number) + '';
              return Number(stringNumber.split('').reverse().join(''));
          }
          else {
              return 0;
          }
      }
docs: Example: number = 123; return = 321