daily pastebin goal
83%
SHARE
TWEET

Untitled

a guest May 23rd, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function t3hClosure() {
  2.   var globalVariablesSux = "non global";
  3.  
  4.   return function() {
  5.     alert(globalVariablesSux);
  6.   }
  7. }
  8.  
  9. closure = t3hClosure();
  10.  
  11. alert(globalVariablesSux);
  12. closure();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top