How do I make the first letter of a string uppercase, but not change the case of any of the other letters?
For example:
\"this is a test\"
Checkout this solution:
var stringVal = 'master'; stringVal.replace(/^./, stringVal[0].toUpperCase()); // returns Master