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\"
Use:
var str = "ruby java"; console.log(str.charAt(0).toUpperCase() + str.substring(1));
It will output "Ruby java" to the console.
"Ruby java"