Created
April 30, 2018 22:35
-
-
Save alexko30/fbe8008b3ac014a008ae4f9949a32ff9 to your computer and use it in GitHub Desktop.
first Char to Upper Case
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
function firstCharUpperCase(str) { | |
console.log(str.charAt(0).toUpperCase() + str.slice(1)); | |
} | |
firstCharUpperCase('ukraine'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment