Answers for "javascript uppercase to lowercase"

89

javascript convert string to lowercase

var str = "My Big Boy!"
var res = str.toLowerCase(); //res is "my big boy!"
Posted by: Guest on July-16-2019
1

js test letter lowercase

if (character == character.toLowerCase())
{
  // The character is lowercase
}
else
{
  // The character is uppercase
}
//The problem with this answer is, 
//that some characters like numbers or punctuation 
//also return true when checked for lowercase/uppercase.

// this is the solution for it:
function isLowerCase(str)
{
    return str == str.toLowerCase() && str != str.toUpperCase();
}
Posted by: Guest on August-19-2021
1

javascript string to lowercase

var string = "TO loWer CASE";
console.log(string.toLowerCase()); // to lower case
Posted by: Guest on June-19-2021
0

make text lowercase javascript

let name = "Collins Rollins"
let rename = name.toLowerCase();
console.log(rename);
//OUTPUT:  "collins rollins"
Posted by: Guest on June-01-2021

Code answers related to "javascript uppercase to lowercase"

Code answers related to "Javascript"

Browse Popular Code Answers by Language