From 051d3eab699c9715f35f33e00aed162335b517d2 Mon Sep 17 00:00:00 2001 From: "Cristian F. Tovar" Date: Fri, 8 May 2020 13:50:01 -0500 Subject: [PATCH] Is it too simple? --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 2f46b4b..086637b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,8 +1,8 @@ const { StackObj } = require ('./stack-obj'); function baseConverter(decNumber, base) { - // your code - return ; + if(base < 2 || base > 36) return null + return decNumber.toString(base).toUpperCase(); } -module.exports = { baseConverter }; +module.exports = { baseConverter }; \ No newline at end of file