Profile Picture
IT Made Easy
The site provides some rough IT Notes that make your life easier. The site currently has notes on HTML, CSS, Regex, OOPS, JS, JQuery, PHP, Java, ASP.NET, C#, Database, Linux, URL Rewrite, SEO, Project Management and Hosting. Please do share this site if you like.

Functions

Next
Next
  • Declarative/static
  • Dynamic/anonymous (Parsed many times)

var variable = new Function ("param1", "param2", ... , "paramn", "function body");

  • Literal (Parsed only once)

var func = (params) {

statements;

}

  • If a function is used within an expression in another statement, it's an example of a function literal no matter what the expression is.

functionName.length gives the number of arguments

IT Notes

by VinodSebastian



IT Downloads


Catalogue