-
-
Save parzibyte/ae916d8bd729bc333b43d85e5558facb 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
//Declararla: | |
async function regresarSaludo() { | |
return "Me gusta JS"; | |
} | |
// Llamarla y usarla como promesa | |
regresarSaludo() | |
.then(resultado => { | |
console.log("El resultado es: ", resultado); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment