Last active
October 22, 2018 16:19
-
-
Save krzysztofczernek/a28ab9f5d060631ed79f93dc3c6f764d 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
let firstName = 'krzysztof' | |
function uppercaseName (lastName) { | |
return `${firstName.toUpperCase()} ${lastName.toUpperCase()}` | |
} | |
console.log(uppercaseName('doe')) // Prints "KRZYSZTOF DOE" | |
// Lots and lots of code... | |
firstName = 'john' | |
console.log(uppercaseName('doe')) // Prints "JOHN DOE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment