That way, if, for any reason, you do not pass a specific argument to a function, the function uses (or falls back to) the default value. In order to call a function as a method, it must be defined as a property on an object. Function arguments are the real values
// Now let’s call function B here which takes declaration of function A as the parameter. A Function Procedure is able to return a value to your code. Output: Defaults Parameter: The default parameters is used to initialized the named parameters with default values in case of when no value or undefined is passed. Changes to arguments are not visible (reflected) outside the function. Sometimes this is acceptable, but sometimes it is better to assign a default
Defining the function simply names the function and specifies what to do when the function is called.