Skip to content

Instantly share code, notes, and snippets.

@cwilper
Created September 26, 2016 01:17
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 cwilper/4e3031914e5b5c45b5c39acebb03653c to your computer and use it in GitHub Desktop.
Save cwilper/4e3031914e5b5c45b5c39acebb03653c to your computer and use it in GitHub Desktop.
Javascript Nerd Test
#!/usr/bin/env node
"use strict";
// what does this function return?
function a()
{
return
{
i: 1
};
}
// ...the same thing as this one?
function b()
{
return {
i: 1
};
}
console.log(a());
console.log(b());
// Why?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment