Menu
Coddy logo textTech

27. Reverse an Integer

Lesson 28 of 31 in Coddy's 30 Days of Logic Building in Javascript course.

challenge icon

Challenge

Easy

Write a function that reverses the digits of an integer.

  • Input: <strong>123</strong>
  • Expected Output: <strong>321</strong>

Try it yourself

function reverseInteger(num) {
    // write your code below 
    
}

All lessons in 30 Days of Logic Building in Javascript