JSFiddle - React, Tailwind, and code Playground
by wwwroot
JavaScript
function getTotalPrice(netPrice) {
var tax = IsTaxExempt;
if (false) {
var tax = 0;
} else {
tax = 0.2;
}
var total = netPrice + netPrice * tax;
console.log(total);
return total;
}