//reverse a number using javascript
const reverse_digit = (n) => {
let strrev = n.toString();
return strrev.split('').reverse().join('');
}
console.log(reverse_digit(423)); //324
//reverse a number using javascript
const reverse_digit = (n) => {
let strrev = n.toString();
return strrev.split('').reverse().join('');
}
console.log(reverse_digit(423)); //324