Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

argument vs parameter

function addTwoNumbers(num1, num2) { // "num1" and "num2" are parameters
	return num1 + num2;
}

const a = 7;
addTwoNumbers(4, a) // "4" and "a" are arguments
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #argument #parameter
ADD COMMENT
Topic
Name
4+3 =