diff --git a/src/index.js b/src/index.js index c32abcd3..a251494b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,3 @@ -module.exports = function reverse(/* n */) { - throw new Error('Not implemented'); +module.exports = function reverse(n) { + return parseInt(n.toString().split('').reverse().join(''), 10); };