First off, I know this is far from professional. I\'m trying to learn how to work with strings. What this app is supposed to do is take a simple text input and do a few thi
Use regular expressions.
Example
var s = "thisIsAstring"; var numUpper = s.length - s.replace(/[A-Z]/g, '').length; // numUpper = 2
Se more at JavaScript replace/regex