showing results for - "js test letter lowercase"
Laura
16 Feb 2016
1if (character == character.toLowerCase())
2{
3  // The character is lowercase
4}
5else
6{
7  // The character is uppercase
8}
9//The problem with this answer is, 
10//that some characters like numbers or punctuation 
11//also return true when checked for lowercase/uppercase.
12
13// this is the solution for it:
14function isLowerCase(str)
15{
16    return str == str.toLowerCase() && str != str.toUpperCase();
17}
Bailey
17 Jan 2020
1let name = "Collins Rollins"
2let rename = name.toLowerCase();
3console.log(rename);
4//OUTPUT:  "collins rollins"
Jonathan
23 Aug 2020
1// A minified version of the other one:
2const hasLowerCase= s => s.toUpperCase() != s;
3
4console.log("HeLLO: ", hasLowerCase("HeLLO"));
5console.log("HELLO: ", hasLowerCase("HELLO"));
Alex
28 Jan 2020
1function hasLowerCase(str) {
2    return str.toUpperCase() != str;
3}
4
5console.log("HeLLO: ", hasLowerCase("HeLLO"));
6console.log("HELLO: ", hasLowerCase("HELLO"));
queries leading to this page
node check string all lowercasehow to check if a word contain a lowercase letter in javascriptjs to lower casejs check if char is lowercasejavascript check if letter is lowercasejs string downcaseparse string to lower case jsto lower in javascriptlowercase javascriptmake a string lowercase javascripthow to make word in lower case in javascriptsmallcase jscheck if character is lowercase jshow to check if string is lowercase in javascriptmake string lowercase in javascriptset small text jsjavascript convert to lowercasehow to convert a string into lowercase in javascriptcheck word contains in string javascript uppercase and lowercasejavascript change to smallcasejavascript string to small casestring to lower javascripttext transform lowercase javascriptmethod to check if all to lowercase jscheck if string contains lowercase jsjs includes lowercasehow to convert whole string to lower case jsdetect lowercase letter in string javascripttext to small case jsreplace javascript to lowercase 28 29js if loweercasejs check if string has small letterjavascript string is lowercaseif exists to lowercase javascripthow to check if a character in a string lowercase in javascriptjavascript check lowercase or uppercaselowercase in javascriptcheck if string contains lowercase javascriptincludes in string javascript lowercase or uppercaseconverst lower case javascripthow to lowercase a string jshow to check if is lowercase in jslowercase transform jsstring lower in jsusing tostring and lowercase together javascriptjavascript to lowercase3is lowercase javascriptcheck if word is in lowercase javascripthow to compare lowercase in jsconditional that checks if letter is lowercase javascriptmake all characters lowercase javascriptjavascript check if string contains lowercasejs includes to lowercaseuppercase to lowercase in javascriptjavascript convert string to all lowercasejavascript check if string contains uppercase and lowercasejavascript string to lower casehow to convert a string to a lowercase in javascript javascript to lowercasewords tolowercase in jsconvert text to lowercase javascriptjs variable lowercasecheck if is lowercase in jshow to make srting lowercase in javscriothow to convert string in lowercasein jsuppercase and lowercase character javascriptlowercase string javascripthow to make all characters lowercase in javascriptjs text lowercasecheck string contains lowercase and uppercase javascriptjs lowercase lettersjs check letter lowercasejavascript to lower casejavascript includes lowercase checkconvert lower case in javascriptchange string to lowercase jsto lowercase javascriptjs if text contains lowercasechecking if a string only contains lowercase letters javascriptto lowercase jsuppercase and lowercase javascripthow to check if the character is lowercase or uppercase in javascriptcheck for lowercase javascriptjava script to lower casejavascript string contains lowercasehow to check if a letter is lowercase in javascriptstring to lowercase javascripthow to check if a character in a string is uppercase or lowercase in javascriptchanging words to lower case letters in javascriptjs use includes and lowercasecheck if let contains lowercase jsstring lowercase javascriptincludes lowercase javascriptjavascript tolowercaselowercase all text jsto lowercase jscheck if letter is lowercase javascriptfunction to lowercase jshow to check if a character is lowercase in javascripthow to lowercase strings javascriptcheck if a character is lowercase jsjavascript string tolowercasestring to lowercase jsjavascript string includes lowercase lettercheck if a string is lowecase jscheck lowercase 2c uppercase in string javascriptto lower case in javascriptlowercase word jsparameter lowercase javascriptchange to lowercase javascriptto small letters javascriptjs string to lowercasecheck if lowercase javascriptjs to lowercaseconvert string to lowercase javascriptconvert string in function to lowercase javascriptjs lowercase stringjavascript string to lowercasehow to check if a string contains only lowercase in javascriptconvert to small letters javascriptto lowercase in js javascript includes lowercasemake uppercase to lowercase in javascriptstr to lower javascriptjs translate all text to lowercasejavascript make string lowercaseto lower case jshow to check uppercase and lowercase in javascriptjavascript test for uppercase and lowercasejavascript string to lowerhow to chnage value in lower case in jscheck if price is lowercase javascriptget innertext js to lowercasecheck one character is uppercase or lowercase jsjavascript check if string has upper case and lowercasejavascript lowercasehow to check for lowercase letter in javascriptconvert to lowercase javascripthumps js to lowercase javascriptstr to lowercase javascriptjavascript check lowercase lettersstring to lower in javascriptto small letter jsjs string lowercasestring to lower jscheck if string has letter lower or uppercase javascriptstring lower javascriptjavascript lowercase stringjs convert string to lower caseconvert text to lowecase jshow to convert string to lowercase in javascriptif time string is lower javascripthow to lowercase evryhting javascripcheck if string is lowercase jshow to detect if a text is lower case in jsmake text lowercase javascripthow to show only lowercase letter in a string in javascriptjavascript check is lower casejavascript string lowercasejs check if lowercasedetect word of lowercase in string javascriptjs convert to lower casecontains lowercase javascriptcheck uppercase and lowercase in javascripttolowerstring javascripthow to check if a string is uppercase or lowercase in javascriptcheck if a string is lowercase javascriptjs test letter lowercasecss lowercase in jsstring lowercse in jsjavascript str to lowerjavascript check if string starts with lowercasehow to convert to small letter in jsjs check if string is all lowercasejavascript check if character is lowercaseconvert text into lower case in jscheck if string in lowercase includes java scriptcheck if string is lowercase javascriptjavascript uppercase to lowercasehao to make lowercase in jshow to check if a string contains uppercase and lowercase in javascriptto lower case javascriptjavascript check if lowercasehow to check string includes word uppercase and lowercase in javascriptcheck if character is lowercase javascriptjs check all charter in string are lower lowercasejavascript make text lowercasejavascript smallcasejs lowercasejs test letter lowercase