22.
What are default function parameters in ES6?
Parameters that automatically generate random values when no argument is provided.
Parameters that can only accept a specific data type.
Parameters that are required to be passed when calling the function.
Parameters that have default values if no argument is provided for them.
Correct: D
Default function parameters allow us to assign default values to function parameters if no value or undefined is provided when the function is called. This helps to handle cases where a value is not provided for a parameter without causing errors or unexpected behavior.