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