Answers for "test a character in upercase or nor in javascript"

1

how to check string uppercase or lowersace using regex javascript

var regex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!#\*\?])(?=.{8,})/;
Posted by: Guest on June-17-2020
0

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");
  }
Posted by: Guest on September-17-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language