Default Parameter Labels
Default Parameter Labels
A default parameter is a fallback for a missing argument. It is useful when most calls use the same setting but a few calls override it.
Your task: Write formatReminder(title, minutesBefore) so it returns "TITLE: N minutes before". When minutesBefore is not provided, use 10.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
Default Parameter Labels
A default parameter is a fallback for a missing argument. It is useful when most calls use the same setting but a few calls override it.
Your task: Write formatReminder(title, minutesBefore) so it returns "TITLE: N minutes before". When minutesBefore is not provided, use 10.