On Sat, Jun 22, 2013 at 12:10 PM, Girish Venkatachalam <
[email protected]> wrote:
> This is also a cool animation.
>
>
> A javascript callback function is very funny with plenty of special
> characters.
>
> function() {
>
> });
>
>
Actually, a 'callback' function is no different from any other function in
javascript. And it does not have any funny special characters in it either.
The above snippet in wrong syntax! The ')" at the end is the closing
bracket of the invoked function to which this anonymous function was passed
as an argument.
So, this function is only:
function(){
}
Pls take your time to wrap your mind around this fact and appreciate its
just another function definition.
Now this need not necessarily be a 'callback' but could also be a function
that does some useful work inside of the calling function.
> Something like that.
>
> I took a long time to wrap my brain around so many brackets.
>
If the intention was to learn something and to put it to good use, it would
not have taken much time to wrap your mind around it!!! But your intention
seems to be to post half baked snippets, without even understanding it
properly, just to massage your ego and rile other people's coding
sensibilities. So, its not surprising!
Peace be with you,
mano
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines