Skip to content

Instantly share code, notes, and snippets.

@jurgob
Created January 14, 2019 22:54
Show Gist options
  • Save jurgob/b2d766d46d85e934ca0d48ac9b67eeb1 to your computer and use it in GitHub Desktop.
Save jurgob/b2d766d46d85e934ca0d48ac9b67eeb1 to your computer and use it in GitHub Desktop.
const message = ["Javascript", "Ninja", "Italia"]
const hello = async () => Promise.resolve(message)
.then(([first, ...words]) => {
return `Hello from ${first}(js) ${words}!`
})
const execute = async function() {
const helloString = await hello()
console.log(helloString)
}
execute()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment