Introduction
Default values let you set a fallback for function parameters. This means if someone does not give a value, your code still works smoothly.
When you want an API endpoint to have optional query parameters.
When you want to provide a common default setting for a function argument.
When you want to avoid errors if a user forgets to send some data.
When you want to simplify your API by not forcing all inputs every time.