From 505153a3dc141444258c3e5022894c856e0b0bea Mon Sep 17 00:00:00 2001 From: tokanito <78441278+tokanito@users.noreply.github.com> Date: Wed, 10 Mar 2021 08:21:47 +0400 Subject: [PATCH] feat: add file --- src/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 83dabdd87..2455aa9d7 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,5 @@ -module.exports = function reverse (n) { - -} +module.exports = function reverse (n) { +n=n.toString().split('').reverse().join(''); +n=parseInt(n,10); +return n; +}