Implement and export as default a function that reverses the digits in the passed number and returns a new one.
reverseInt(13); // 31 reverseInt(-123); // -321 reverseInt(8900); // 98
- To get a string length use the
- You may need the function
For full access to the challenge you need a professional subscription.
A professional subscription will give you full access to all Hexlet courses, projects and lifetime access to the theory of lessons learned. You can cancel your subscription at any time.