mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-10 06:12:17 +08:00
Use ESM syntax and remove console.log()
This commit is contained in:
@ -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 }
|
||||
|
Reference in New Issue
Block a user