Friday, January 24, 2020

Check to see if a character is uppercase in JavaScript!

var x = "ohN0yo!";
for(y = 0; y < x.length; y++) {
   if(x[y] == x[y].toUpperCase() && x[y] != x[y].toLowerCase()) {

No comments:

Post a Comment