Created
March 13, 2013 20:01
-
-
Save anvaka/5155610 to your computer and use it in GitHub Desktop.
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
// what needs to be changed in this code, to satsify requirements below: | |
function () { | |
function foo() { | |
var a = 42, | |
b = function () { console.log('hi'); }; | |
} | |
// a and b should be available in this scope (but not the outter) | |
// No other modifications to this scope are allowed | |
function bar() { | |
// could use a, b. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment