How do I isolate toUpperCase() to disregard numbers Live code
var data = 'LOL';
var data2 = '1 2 3 4';
if(data2 === data2.toUpperCase()) {
document.write('hey');
}else {
document.write('nope');
}
both will write hey to the document!
Why in javascript is toUppercase() think that numbers are uppercase letters? What is the best way to test for uppercase but not for numbers also?