jQuery in Action, 2nd edition*
The moose likes HTML, CSS and JavaScript and the fly likes About closure in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "About closure in javascript" Watch "About closure in javascript" New topic
Author

About closure in javascript

pravin rasal
Ranch Hand

Joined: Jul 27, 2011
Posts: 63
I want to know more about closures in JavaScript. Actually why we used closures in JavaScript.
Give one example of closures
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

JavaScript closures


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: About closure in javascript
 
Similar Threads
Setting on click function and passing in variable
functions in javascript
Does groovy break Java (philosophically)?
Is it better practice to pass an element object or element id to a function
passing arg from 1 javascript method to the other