Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to find if given character in a string is uppercase or lowercase in javascript

var str = S;

  if (str == str.toUpperCase())
  {
    console.log(" Uppercase");
  }
  else
  {
    console.log("Lowercase");
  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #character #string #uppercase #lowercase #javascript
ADD COMMENT
Topic
Name
7+9 =