---
title: "Discussion on \"JS Exercise: Sum of a String\" | Hashnode"
description: "Discussion on \"JS Exercise: Sum of a String\". Feeling confident in Javascript?\nWell, given a string of lowercase letters, would you be able to sum them all up into 1 value? \nIn one line of code?\nSolution and explanations are below.\nThe Solution\nconst lettersum = s => \n    s \n        .split('') \n..."
url: "https://hashnode.com/posts/js-exercise-sum-of-a-string/62466e2d485edefec47e44c4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JS Exercise: Sum of a String](https://blog.ahernandez.dev/js-exercise-sum-of-a-string?utm_source=hashnode&utm_medium=feed)

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('') ...

Apr 1, 2022 · 2 min read · blog.ahernandez.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Alex Hernandez](https://hashnode.com/@phantomhaze)

@phantomhaze

  
[View profile](https://hashnode.com/@phantomhaze)

Software dev, nature lover, Linux man, console cowboy. ❤️ to build with Next and JAM.

I'm a software developer in the Los Angeles area. I build web and fullstack applications, as well as participate in cybersecurity games (HTB, Vulnhub, OTW, etc).

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
