Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 28, 2019 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/ae916d8bd729bc333b43d85e5558facb to your computer and use it in GitHub Desktop.
Save parzibyte/ae916d8bd729bc333b43d85e5558facb to your computer and use it in GitHub Desktop.
//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