Use ESM syntax and remove console.log()

This commit is contained in:
Eric Lavault
2021-10-08 13:21:01 +02:00
parent 8afef50cb7
commit 52de039184
2 changed files with 2 additions and 4 deletions

View File

@ -40,6 +40,4 @@ const powerDigitSum = function (n = 2, pow = 1000) {
return digits.reduce((prev, current) => prev + current, 0)
}
console.log('Power digit sum of 2^1000 :', powerDigitSum())
module.exports = powerDigitSum
export { powerDigitSum }