What is the result of the following code?
function calculatePriceWithVAT(price) {
const VAT = 0.21;
function applyVAT() {
return price + price * VAT;
}
return applyVAT();
}
console.log(calculatePriceWithVAT(100));
What is the result of the following code?
function calculatePriceWithVAT(price) {
const VAT = 0.21;
function applyVAT() {
return price + price * VAT;
}
return applyVAT();
}
console.log(calculatePriceWithVAT(100));