How do you define a function with named parameters in JavaScript?
By using the named keyword before each parameter name.
named
By using the : syntax to assign values to the parameters.
:
JavaScript does not support named parameters.
By enclosing the parameter names in square brackets.