Created
March 27, 2018 16:21
-
-
Save Shadid12/80408f1ad1bdcbbf47cd44b740c4345d 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 getApple = (b) => { | |
setTimeout(() => { | |
b({name: 'Macintosh'}); | |
}, 2000); | |
}; | |
getApple((apple) => { | |
console.log(apple.name); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment