How to lowercase a string in JavaScript?

If you want to easily capitalize a string in JavaScript to uppercase, you can use this simple snippet of code:

var str = "Hello World!";
var newStr = str.toLowerCase();

The result will be:

"hello world!"

You can also capitalize only the first letter of a string or uppercase the whole string.

Capitalize My Title is a dynamic title capitalization tool used to make sure your titles or headlines use proper capitalization rules according to various style guides include APA, AP, MLA, and Chicago. It also counts your words and checks for grammar issues.


Please enter your comment!
Please enter your name here