The functions are objects that are used to specify or encapsulate one or more statements.
The basic function declaration syntax looks like this:
function myFunction(argument_0, argument_1, ? argument_N) {
   statement1;
   statement2;
}
| NAME | DESCRIPTION | 
|---|---|
| arguments | Special function objects acting as arrays. | 
| callee | Points to the function that owns the arguments. | 
| this | Points to the object that the function is operating on. | 
| length | Returns the number of arguments passed to a function. | 
| prototype | Points to the location of the original reference function. | 
| return | Return statement returns the function's value. | 
| METHOD | DESCRIPTION | 
|---|---|
| apply() | Detects the scope in which the function runs. | 
| call() | Same as apply(), except that the arguments are passed differently. | 
| toLocaleString() | Returns the function's code. | 
| toString() | Returns the function's code. | 
| valueOf() | Returns the function itself. | 
 
					 
			 
			
Comments
No comments have been made yet.
Please login to leave a comment. Login now