Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed (UPI) Chapter 6: Functions in JavaScript!
Instruction
Default Values
If a function is invoked with fewer arguments than it contains parameters, the surplus parameters keep undefined. But you can define default values for this case by assigning a value within the function's signature. The missing parameters will get those as their default values.
"use strict";
// two nearly identical functions; only the signature is slightly different
function f1(a, b...