Last active
November 2, 2020 02:51
-
-
Save jerlyrosa/62b8328beba5806616c11b1d86140e72 to your computer and use it in GitHub Desktop.
Metodos para convertir un String en mayuscula y minuscula con los metodos toLowerCase() y toUpperCase() en javascript.
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
let valor = new String ('Hola soy una cadena');//String que vamos a utilizar. | |
let lowerCase;//Variable para guradar el nuevo string | |
let upperCase;//Variable para guradar el nuevo string. | |
lowerCase = valor.toLowerCase();// Este metodo convertira toda la cadena en minuscula. | |
console.log(lowerCase)// Comprobamos en consola. | |
UpperCase = valor.toUpperCase()// Este metodo convierte toda la cadena en mayuscula. | |
console.log(upperCase)// Comprobamos en consola. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment