Created
February 15, 2016 03:10
-
-
Save SoldierCorp/2f532ce70d43fb2a3c1e to your computer and use it in GitHub Desktop.
Javascript ucfirst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var string = 'github'; | |
string = string[0].toUpperCase() + string.slice(1); | |
console.log(string); //Github |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment