JavaScript refuses to run the code below. Which statement correctly describes the problem?
function applyTax(amount) {
let amount = amount * 1.18;
return amount;
}
console.log(applyTax(100));
Parameters and let/const in the function body share one scope. Reassign the parameter (amount = amount * 1.18) or use a new name (const withTax = …).