One Linear - Clean Code

```javascript []
const scoreOfString = (s, [first, ...tail] = [...s].map(c => c.charCodeAt(0))) =>
    tail.reduce(([score, prev], v) => [score + Math.abs(prev - v), v], [0, first])[0];

```
['JavaScript']