Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Create Function in javascript

function world(params){
 	//Code to be executed when the function is called. 
}
world()

//Explaination
//'world' in the function is the name of the function.
//There are brackets after function name. Those are use to push parameters
//The forth line Calls the function named 'world'
Source by blog.niftysnippets.org #
 
PREVIOUS NEXT
Tagged: #Create #Function #javascript
ADD COMMENT
Topic
Name
7+7 =