How do you define a function parameter as optional in JavaScript?
By enclosing the parameter name in square brackets.
By using the optional keyword before the parameter name.
optional
By not specifying a default value for the parameter.
By using the optional keyword after the parameter name.