Last active
March 12, 2021 13:06
-
-
Save richlloydmiles/bd5d5f365a36ab55cbdded13dde43d75 to your computer and use it in GitHub Desktop.
Question 1
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 names = ['George', 'Ringo', 'John', 'Paul'] | |
const getEmailAddress = (name) => new Promise(resolve => setTimeout(resolve(name + '@beetle-mail.com'), 100)); | |
// write a function that prints out all the names with email addresses as an array using the getEmailAddress function | |
// output should be: ['[email protected]', '[email protected]', '[email protected]', '[email protected]'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment