javascript convert string to lowercase
var str = "My Big Boy!"
var res = str.toLowerCase(); //res is "my big boy!"
javascript convert string to lowercase
var str = "My Big Boy!"
var res = str.toLowerCase(); //res is "my big boy!"
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();
}
javascript string to lowercase
var string = "TO loWer CASE";
console.log(string.toLowerCase()); // to lower case
make text lowercase javascript
let name = "Collins Rollins"
let rename = name.toLowerCase();
console.log(rename);
//OUTPUT: "collins rollins"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us