Skip to content

Instantly share code, notes, and snippets.

@pragmaticobjects
Created September 8, 2011 12:51
Show Gist options
  • Select an option

  • Save pragmaticobjects/1203325 to your computer and use it in GitHub Desktop.

Select an option

Save pragmaticobjects/1203325 to your computer and use it in GitHub Desktop.
A third simple web page
<script>
var globalVar = "Hello";
var foo = function(param) {
var foo = 'bar';
alert(globalVar + " " + param);
console.log(foo);
};
foo("World");
</script>
<div>Hello World</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment