Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function main() {
  2. let closureScope = (
  3. function() {
  4. var a = 0;
  5. return {
  6. inside1: function() {
  7. a = 1;
  8. },
  9. inside2: function() {
  10. a = 2;
  11. }
  12. };
  13. })();
  14.  
  15. closureScope.inside1();
  16. closureScope.inside2();
  17. }
  18.  
  19. main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement