Skip to content

Instantly share code, notes, and snippets.

@binarica
Created July 17, 2020 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save binarica/83a3661057f66eca656f403959a01318 to your computer and use it in GitHub Desktop.
Save binarica/83a3661057f66eca656f403959a01318 to your computer and use it in GitHub Desktop.
function hello(name) {
if (typeof name === 'undefined') {
name = 'World';
}
return `Hello ${name}`;
}
console.log(hello());
console.log(hello("Brian"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment