The point of the parameter is to be used to define the variable on a case-by-case basis, for each function call, greatly improving the adaptability of your function.
function saySomething(text) as an example.
text is a parameter. In the body of our function, we can write
console.log(text); and it’ll work just fine, because the value of the variable has been defined… in the function call.
When we call the function, we write
In this line, we are defining the value of the
text for the duration of the
saySomething() function call as String
So where is it declared?: In the function declaration, as a parameter (argument). Where is it assigned?: In the function call, to the already declared parameter.