Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 31st, 2014
138
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
var x = 10;
return function(){
alert(++x);
};
}
test2 = function() {
var x = 10;
return function(){
return function(){
alert(++x);
}
};
}
test1()();
test2()()();
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
FREE ETHEREUM METHOD
Lua | 1 hour ago | 0.12 KB
Free Crypto Method
Julia | 1 hour ago | 0.12 KB
Free Money Method
Properties | 1 hour ago | 0.39 KB
Free Money Method
Properties | 1 hour ago | 0.39 KB
HOW TO EARN 5000$ IN 24 HOURS
HTML 5 | 1 hour ago | 0.12 KB
Untitled
Julia | 1 hour ago | 0.12 KB
Free Crypto MethodGuide
C++ | 1 hour ago | 0.39 KB
Free Crypto MethodGuide
C++ | 1 hour ago | 0.39 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!