Skip to content

Instantly share code, notes, and snippets.

@jcreedcmu
Created September 4, 2013 19:43
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 jcreedcmu/6441864 to your computer and use it in GitHub Desktop.
Save jcreedcmu/6441864 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>
lol
</title>
</head>
<body>
<script type="text/javascript">
if (2 + 2 == 4) {
(function() {
function foo() {
alert("Works as expected.");
}
foo();
})();
} else {
(function() {
function foo() {
alert("WTF is wrong with this language???");
}
foo();
})();
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment