Personally, I agree and I’m pretty sure I have made some of the same observations as you.
I see no good reason not to have the function call. It would be equivalent to teaching parameters and not showing the function call with the arguments. Or vice versa. I see no way in which having the function call shown here can hurt, on the contrary.
As said, unfortunately, parameters and arguments are sometimes used interchangeably, incorrectly if you ask me. Sometimes it is just the grammar, sometimes it is the words themself that are used incorrectly. They mean different things and they are not used grammatically in sentences the same either.
Use Destructuring Assignment to Pass an Object as a Function’s Parameters
In my opinion, this is grammatically incorrect.
It should be to not as. The object is passed to the parameter, not as the parameter. You can not pass an object as a parameter, you can pass it as an argument to a parameter.
Unfortunately, MDN has something like this as well:
Unpacking fields from objects passed as a function parameter.
Even Grammarly complains about that sentence.
In some cases, you can destructure the object in a function argument itself.
Here the word is simply used incorrectly. It should be a parameter. Also, make up your mind you just called it a parameter in the title.
profileData is passed to the above function, the values are destructured from the function parameter for use within the function.
And now we are back to calling it a parameter.
Use destructuring assignment within the argument to the function
half to send only
min inside the function.
There are no arguments here as we do not have a function call anywhere. Again, why does it keep switching between argument and parameter?
The challenge we have on arguments and parameters uses the correct semantics and as expected shows both the definition and call site.
Passing Values to Functions with Arguments
Parameters are variables that act as placeholders for the values that are to be input to a function when it is called. When a function is defined, it is typically defined along with one or more parameters. The actual values that are input (or “passed”) into a function when it is called are known as arguments.
@Jaketh1 You can always open an issue on GitHub and see what people have to say. I certainly wouldn’t mind the arguments/parameters part being cleaned up.