Created
September 10, 2015 01:43
-
-
Save martywallace/066cb5af450a21351a37 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
function userEntry(callback) { | |
callback && callback(prompt("Please enter your name here.")); | |
} | |
userEntry(function(name) { | |
firstUserEntry = name; | |
console.log(firstUserEntry); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment