How to Capitalize a String with 1 Line of JavaScript
I'll keep this post short and sweet as I gotta run to yoga class soon here! π§ββοΈ
Capitalizing a word in JavaScript is a bit of a pain, because strings are immutable. That is, you CANNOT simply change a character in a string like this:
str = 'javascr...
indepthjavascript.dev2 min read