Let's test your knowledge. Click the correct answer from the options.
Which of the following statements about default parameters is correct?
Click the option that best answers the question.
- Default parameters can only be used with arrow functions
- Default parameters can be used with any type of function
- Default parameters have to be undefined
- Default parameters can only be used with object methods