Quiz · Functions · lesson 5 of 10Quiz — default parametersWhat do default parameter values do, and when does the default actually apply?[A]Writing function f(x = 10) gives x the value 10 only when the argument is left out of the call entirely. Passing undefined on purpose counts as a real argument, so f(undefined) keeps undefined and skips the default.[B]Writing function f(x = 10) gives x the value 10 when its argument is null or undefined, the same two values that ?? reacts to. Other falsy arguments, such as 0 or false, are kept as passed.[C]Writing function f(x = 10) gives x the value 10 whenever its argument is falsy — 0, an empty string, null, false or a missing one. Only a truthy argument is kept as passed, so a call such as f(0) gets 10 as well.[D]Writing function f(x = 10) gives x the value 10 when its argument is undefined — left out of the call or passed as undefined. Any other argument, even 0, null or false, is kept exactly as it was passed.Subscribe to take the courseThe course is free. Sign in with Telegram and subscribe to the channel to open every lesson.Continue with TelegramSign in another way← BackDefault parametersNext →Arrow functions