Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what are the parameters and arguments in javascript

// what are the parameters and arguments in javascript
// Function parameters are the names listed in the function's definition. 
// Function arguments are the real values passed to the function.
function calculateArea(width, height){ // width and height are Parameters
  console.log*=(width * height);
}
calculateArea(2,3); // 2 and 3 are Arguments
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #parameters #arguments #javascript
ADD COMMENT
Topic
Name
9+7 =