Skip to content

Instantly share code, notes, and snippets.

@samfcmc
Last active August 23, 2019 21:45
Show Gist options
  • Save samfcmc/e1e9436889be93405baaa06ce98aac65 to your computer and use it in GitHub Desktop.
Save samfcmc/e1e9436889be93405baaa06ce98aac65 to your computer and use it in GitHub Desktop.
const message = getMessage('Sam');
function getMessage (name) {
const completeMessage = intro + ' ' + name;
const intro = 'Hello my name is';
return completeMessage;
}
console.log('Message: ', message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment