Created
January 14, 2019 22:54
-
-
Save jurgob/b2d766d46d85e934ca0d48ac9b67eeb1 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
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