Created
September 17, 2019 04:06
-
-
Save djD-REK/2530a1ac17d37f0e8a2f50ae6cbcbfbf 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: username, | |
email: email | |
} | |
} | |
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