Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main() {
- let closureScope = (
- function() {
- var a = 0;
- return {
- inside1: function() {
- a = 1;
- },
- inside2: function() {
- a = 2;
- }
- };
- })();
- closureScope.inside1();
- closureScope.inside2();
- }
- main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement