Created
September 17, 2019 04:07
-
-
Save djD-REK/f4123eba45c04c5fbef4892f6df78344 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 getEmail = username => `${username}@gmail.com` | |
function getUser (username) { | |
const email = getEmail(username) | |
return { | |
username, | |
} | |
} | |
console.log(getUser("MrRoboto")) // Object { username: "MrRoboto", email: "[email protected]" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment