diff --git a/src/index.js b/src/index.js index 2f46b4b..188c57b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,8 +1,11 @@ const { StackObj } = require ('./stack-obj'); function baseConverter(decNumber, base) { - // your code - return ; + if((base % 2 == 0) && base < 37 && base != 0) { + return decNumber.toString(base).toUpperCase(); + } else { + return null; + } } module.exports = { baseConverter };