DEV Community

Discussion on: Daily Challenge #191 - Alphabetical Addition

Collapse
 
khauri profile image
Khauri

Tried to Golf it with JS

function addLetters(...l) {
 return String.fromCharCode(96 + (l.reduce((s, c) => s + c.charCodeAt() - 96, 0) % 26 || 26))
}