| PHP tutorials, html tutorial, photoshop tutorial, ajax tutorials,java tutorial, web design tips tutorials, css tutorial, visual basic tutorial, dreamweaver tutorial, php tutorial, html tutorials, c++ tutorial, javascript tutorial, windows tutorials, free flash tutorials, free photoshop source codes, sql tutorial | ||||||||
![]() |
||||||||
| Home | Forums | Downloads | Books | Submit Content | Links | ||||||||
Functions in JavaScriptsDate:2006-03-20A function is a set of code that can optionally accept parameters and return a value. A JavaScript function may take zero or more parameters. A function has three major parts:
Every function is stated with function keyword. The syntax of JavaScript function is as follows:
The parameters of function are optional. you can use function without paramters. For example:
Output:
Another example of JavaScript with argument is:
In this examples you have used one argument $website.
Note: A function is a block of code that is not immediately executed but can be called by your scripts when needed.
|
|
|||||||
| Desclaimer | Privacy Policy | Submit Content | Links | Link to Us | Sitemap |Contact Us | ||||||||
| Copyright Programming Tutorials, Web Development
Tutorials, Source codes © All Rights are Reserved. Powered By Evernew Solutions Car Insurance - Flights - Credit Cards - Internet Marketing |
||||||||