Created
July 21, 2020 10:24
-
-
Save kermit-klein/bf8790d2d79b5395a8b25f381928503d to your computer and use it in GitHub Desktop.
closure_example_3
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
const counter = () => { | |
let count = 0; | |
return () => { | |
return (count = count + 1); | |
}; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment