The community delivery desk prints a shipping label from a package code, its weight, and an optional service. shippingFee(weight) determines the base fee; shippingLabel(code, weight, service = "regular") calls it, then adds $3 only for express service. Use function calls rather than duplicating the fee rule. Work only in script.js; Run shows your checkpoints in the Console.
Here is an unrelated helper composition for a garden sign. Notice that the second function uses the value returned by the first:
function plotNumber(row) { return row + 10; }
function gardenSign(name, row = 1) {
return `${name} - plot ${plotNumber(row)}`;
}
console.log(gardenSign("Basil")); // Basil - plot 11
shippingFee(weight) to return 4 for weights at most 2 and 7 above 2.shippingLabel(code, weight, service = "regular").shippingFee in the label and add $3 for express.Regular label: PK-8: regular $7 from a call to shippingLabel("PK-8", 3, "regular").Read each expected Console line, then build it from your function calls.