Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bheesham
Created January 12, 2019 06:22
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 bheesham/d86be37abfaa388a0ee1bfac62c50bba to your computer and use it in GitHub Desktop.
Save bheesham/d86be37abfaa388a0ee1bfac62c50bba to your computer and use it in GitHub Desktop.
var undefined = "FOO";
undefined;
(function() {
var undefined = "BAR";
return undefined;
}());
@bheesham
Copy link
Author

bheesham commented Jan 12, 2019

Chromium:

> var undefined = "FOO"; undefined;
undefined
> (function() {
   var undefined = "BAR";
   return undefined;
 }());
"BAR"

Firefox:

> var undefined = "FOO"; undefined;
undefined
> (function() {
   var undefined = "BAR";
   return undefined;
 }());
"BAR"

Guile:

ecmascript@(guile-user)> var undefined = "FOO"; undefined;
$1 = "FOO"
ecmascript@(guile-user)> (function() {
  var undefined = "BAR";
  return undefined;
}());
$2 = "BAR"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment