2 Topics
|
|
I am reading the book for web2py. It is running through some python syntax examples. When I ge to this closure example I am not understanding how 'y' gets its value. This is the code. >>> def f(x): def g(y): return x * y return g >>> doubler = f(2) … |
|
What is closure in javascript and why we used clousers in javascript. |
The End.