Created
September 26, 2016 01:17
-
-
Save cwilper/4e3031914e5b5c45b5c39acebb03653c to your computer and use it in GitHub Desktop.
Javascript Nerd Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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