javascript string.tolowercase code example
Example 1: javascript lowercase string
var str = "My Big Boy!"
var res = str.toLowerCase(); //res is "my big boy!"
Example 2: javascript lowercase string
var str = "ExaMple";
var res = str.toLowerCase();
output res -> "example"
Example 3: how to capitalize string in javascript
const name = 'flavio'
const nameCapitalized = name.charAt(0).toUpperCase() + name.slice(1)