Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let n = 0;
- function callme() {
- n++;
- return callme;
- }
- callme();
- console.log(n); // 1
- callme()()()();
- console.log(n); // 5
- callme()()()()()()()()()()()();
- console.log(n); // 17
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement