Skip to content

Instantly share code, notes, and snippets.

@pablotolentino
Created March 24, 2021 04:31
Show Gist options
  • Save pablotolentino/6cd091882312958c0b60b7795c22b89e to your computer and use it in GitHub Desktop.
Save pablotolentino/6cd091882312958c0b60b7795c22b89e to your computer and use it in GitHub Desktop.
días en mayusculas
var dias = ['lunes','martes','miércoles','jueves','viernes'];
var diasMayusculas = dias.map(function(dia){
return dia.toUpperCase();
});
console.log(diasMayusculas); //resultado: ["LUNES", "MARTES", "MIÉRCOLES", "JUEVES", "VIERNES"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment