Created
April 4, 2019 08:04
-
-
Save gisderdube/313d8ccdda9c482aa6b6668317585472 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
// GOOD | |
function displayUser(firstName, lastName, age) { | |
console.log(`This is ${firstName} ${lastName}. She is ${age} years old.`) | |
} | |
// BAD | |
function displayUser(user) { | |
console.log(`This is ${user.firstName} ${user.lastName}. She is ${user.age} years old.`) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment