Created
October 23, 2020 18:16
-
-
Save wedburst/229ab2b218543b0df4db6c4fa2b67e5e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 name = prompt ("cual es tu nombre?"); | |
| var firstword = name.slice(0,1); | |
| var mayuscula = firstword.toUpperCase(); | |
| var resto = name.slice(1, name.length); | |
| var resto = resto.toLowerCase(); | |
| var resultado = mayuscula + resto; | |
| alert("Asi se ve mejor tu nombre: " + resultado); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment