Skip to content

Instantly share code, notes, and snippets.

@digitalconceptvisuals
Created July 29, 2020 15:19
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 digitalconceptvisuals/ee36672cec85de36fb87664765642299 to your computer and use it in GitHub Desktop.
Save digitalconceptvisuals/ee36672cec85de36fb87664765642299 to your computer and use it in GitHub Desktop.
// Global scope
g_a = 1;
// local to enclosing anonymous function (node.js)
var a = 1;
// Global scope
function hello(name) {
console.log("Hello", name);
}
// Local scope
var greet = function(name) {
console.log("Greetings", name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment