Try to search for anonymous functions http://www.google.com/search?q=anonymous+function+javascript&start=0&start=0&ie=utf-8&oe=utf-8
On Feb 2, 10:25 am, kitti <[email protected]> wrote: > where do we use function() ?? > Can you tell me why do we use function() in the following snippet of > code???? > > GEvent.addListener(map, "click", function() { alert("You clicked the > map."); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
