Covert String to Title Case in Typescript and Javascript
Feb 19, 2021
Need to covert the string to Title Case. Copy paste the simple snippets.
Typescript
const name = "coder singh"const newName = name.split(" ").map((l: string) => l[0].toUpperCase() + l.substr(1)).join(" ")console.log(newName)
Javascript
const name = "coder singh";const newName = name.split(" ").map((l) => l[0].toUpperCase() + l.substr(1)).join(" ");console.log(newName);
Need Help? Contact me.
If you have doubts, want career advice, want help with assignment, help at job or anything related to tech.
Connect with me on a video/audio call:
15 mins(Free): https://bit.ly/3rNsoYA
15 mins($7): https://bit.ly/3rJ45Ls
30 mins($49): https://bit.ly/3xgBle4
60 mins($79): https://bit.ly/3zXMwKq
Instagram: https://bit.ly/2V9mgyf
Youtube Channel: https://bit.ly/3zYCzMS
Discord: https://bit.ly/3lp5gyp
Twitter: https://bit.ly/37gdK2J