---
title: "#last-character articles | Hashnode"
description: "Explore 2 articles tagged #last-character on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/last-character"
---

Tag

# #last-character

2 posts · 0 followers

[Hari Krishna Anem](https://hashnode.com/@hkrishna) · [Jan 20, 2022](https://hashnode.com/posts/javascript-convert-last-character-of-each-word-to-uppercase/63312ea3a50ebf1cd14924a5)

### [JavaScript: Convert last character of each word to uppercase](https://harikrishna.hashnode.dev/javascript-convert-last-character-of-each-word-to-uppercase?utm_source=hashnode&utm_medium=feed)

function changeLastCharacterToUpperCase (str) { return str.split(" ").map( (item) => { return item.slice(0, -1) + item\[item.length - 1\].toUpperCase(); }).join (" "); } console.log(changeLastCharacterToUpperCase('hello world welcome testing a...

1 min read · [harikrishna.hashnode.dev](https://harikrishna.hashnode.dev/javascript-convert-last-character-of-each-word-to-uppercase?utm_source=hashnode&utm_medium=feed)
