Skip to main content
added 38 characters in body
Source Link
user100690
user100690

JavaScript, 4646 42 bytes

n=>[o=>[...n]o].reduce(map(Aw,C)=>Aw+Cz=>w+=z.charCodeAtcodePointAt(0),0w=0)|w

Definitely not the best language for tasks involving character codes.

-4 bytes thanks to Arnauld

JavaScript, 46 bytes

n=>[...n].reduce((Aw,C)=>Aw+C.charCodeAt(0),0)

Definitely not the best language for tasks involving character codes.

JavaScript, 46 42 bytes

o=>[...o].map(z=>w+=z.codePointAt(),w=0)|w

Definitely not the best language for tasks involving character codes.

-4 bytes thanks to Arnauld

Source Link
user100690
user100690

JavaScript, 46 bytes

n=>[...n].reduce((Aw,C)=>Aw+C.charCodeAt(0),0)

Definitely not the best language for tasks involving character codes.