text: module.exports = function reverse (n) {
    /*let str = Math.abs(n).toString();
  	let result = '';
  	let i = 0
  
  	while(i < str.length){
  		result = `${str[i]}${result}`;
  		i++;
  	}
  
  	return +result; */
  
  	let result = 0;
  	n = Math.abs(n);
  
  	while (n > 0) {
  			result = result * 10 + (n % 10);
  			n = Math.floor(n / 10);
  	}
  
  	return result;
  }
  