a lot of times i can see function written like this :
name : function(){ ... }
i got several function about this :
- what is this function different from normal(?) functions
- what this kind of function calling like?
i couldn’t find any information about this kind of function , tutorial will help.
A function in the format:
Is a function within an object literal.
Which can be accessed by obj.myfunction();