Created
June 1, 2012 21:54
-
-
Save jredville/2855368 to your computer and use it in GitHub Desktop.
Idea for a JS interview question... in progress
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
//Define counter | |
var counter = ____; | |
var counter2 = ____; | |
counter.value(); // 0 | |
counter.increment(); | |
counter.value(); //1 | |
counter2.value(); //0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment