Last active
November 23, 2017 14:47
-
-
Save maecapozzi/f258edee2fa92ed874db113ac5ba781b 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 greetUser = () => { | |
new Promise((resolve, reject) => { | |
let name = prompt('Please enter your name') | |
resolve(name) | |
}).then((name) => { | |
console.log('Hello ' + name) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment