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