JS Exercise: Sum of a String
Feeling confident in Javascript?
Well, given a string of lowercase letters, would you be able to sum them all up into 1 value?
In one line of code?
Solution and explanations are below.
The Solution
const lettersum = s =>
s
.split('')
...
blog.ahernandez.dev2 min read