Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// 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