Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

argument and parameter

function myFunction(paramOne, paramTwo){
	//paramOne and paramTwo above are parameters
	//do something here
    return paramOne + paramTwo
}

myFunction(1,2) // 1 & 2 are arguments
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #argument #parameter
ADD COMMENT
Topic
Name
1+5 =