ilianrusev

Untitled

Feb 18th, 2022
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. function foo(n) {
  2. let temp = 0
  3.  
  4. function recursive(x) {
  5. temp += x
  6.  
  7. return recursive
  8. }
  9. recursive.toString = () => temp
  10. return recursive(n)
  11. }
Advertisement
Add Comment
Please, Sign In to add comment