Skip to content

Instantly share code, notes, and snippets.

@paularmstrong
Created March 23, 2011 22:54
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 paularmstrong/884208 to your computer and use it in GitHub Desktop.
Save paularmstrong/884208 to your computer and use it in GitHub Desktop.
// What does this return?
(function() {
function f() { return 1; }
return f();
function f() { return 2; }
})();
// What is x?
var y = 1, x = y = typeof x;
//
var a = [typeof a, typeof b][1];
typeof typeof a;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment