Question · JavaScript and TypeScript course · Module 1: JavaScript Basics
Function Parameters
What is a default parameter in a function?
Answer options
- A global variable accessible in the function
- The first parameter in every function
- A parameter that must always be provided
- A value used when no argument is passed
Show the answer
Correct answer:
- A value used when no argument is passed