How to Capitalize Strings in JavaScript

To capitalize a string in Javascript so the first character is in uppercase, we don’t need to add another NPM dependency. We can use plain JavaScript or even CSS if it is solely for presentational purposes.
TLDR; const chars = ‘hello’ chars[0].toUpperCase… Read more

Similar