---
title: "Discussion on \"How to Capitalize a String with 1 Line of JavaScript\" | Hashnode"
description: "Discussion on \"How to Capitalize a String with 1 Line of JavaScript\". and Capitalize Every Word in a Sentence"
url: "https://hashnode.com/posts/how-to-capitalize-a-string-with-1-line-of-javascript/62df1ca8790e138f3d3979ed"
---

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

Discussion

# [How to Capitalize a String with 1 Line of JavaScript](https://indepthjavascript.dev/how-to-capitalize-a-string-with-1-line-of-javascript?utm_source=hashnode&utm_medium=feed)

and Capitalize Every Word in a Sentence

Jul 25, 2022 · 2 min read · indepthjavascript.dev  
Read the article

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

## Written by

[Amit Mehta](https://hashnode.com/@apmfree)

@apmfree · Abington, PA

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

Javascript Developer who Loves to Code!

Self taught full stack developer who loves to code, just for fun. Enjoys health &amp; fitness, yoga, and meditation. Lives with his wonderful wife and 2 cats in Abington, PA.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
