Last active
March 7, 2018 20:18
-
-
Save gskachkov/7651e00d5e2cb8bae110b997327f7e4d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function init () { | |
"use strict"; | |
var counter; | |
function inc() { | |
counter++; | |
return counter; | |
} | |
return inc; | |
} | |
var calc = init(); | |
calc(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment