Skip to content

Instantly share code, notes, and snippets.

@samfcmc
Created August 23, 2019 21:33
Show Gist options
  • Save samfcmc/26afa5b27b66e2350b8c4645c2223fef to your computer and use it in GitHub Desktop.
Save samfcmc/26afa5b27b66e2350b8c4645c2223fef to your computer and use it in GitHub Desktop.
var message = getMessage('Sam');
function getMessage (name) {
var completeMessage = intro + ' ' + name;
var 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