re: Daily Challenge #110 - Love VS. Friendship VIEW POST

FULL DISCUSSION
 
const wordsToMarks = (word) => word.split("").reduce((acc, curr) => acc + curr.charCodeAt(0) - "a".charCodeAt(0) + 1, 0);
 

You're inefficiently calculating "a".charCodeAt(0) + 1 over and over again. You could use the precalculated value, 96, instead.

code of conduct - report abuse