const num = 3849; function reverseGivenInteger(num) { return Number(String(num).split('').reverse().join('')) } console.log(`Reversed integer is: ${reverseGivenInteger(num)}`)