Created
March 17, 2020 04:18
-
-
Save parzibyte/fe6acac51f4faf4738feb6eb44347a2c to your computer and use it in GitHub Desktop.
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
const primeraLetraMayuscula = (cadena) => { | |
const primerCaracter = cadena.charAt(0).toUpperCase(); | |
const restoDeLaCadena = cadena.substring(1, cadena.length); | |
return primerCaracter.concat(restoDeLaCadena); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment