Monday, February 18, 2013

Javascript Basics Tutorial Part 3: Anonymous Methods

Anonymous Method Like C#.
Important Key notes:
  1. All Methods are funtions but funtions are not method.
  2. Methods can not be called before it is being defined. Unlike FUNCTIONS.
  3. Methods is represented as variable and function is assigned to it.
  4. Methods is variable and any var declaration must ends with semicolon.
  5. Methods can be declared as Anonymous with no name and can be declared with Named Expression.
var obj= function(){somthing;} ;

Chapter 3:

 Output
 

No comments :