79650038

Date: 2025-06-02 16:58:05
Score: 1.5
Natty:
Report link

const checkbox = document.getElementById("shipProtect");
  const priceDisplay = document.getElementById("price");
  const basePrice = 149.94;
  const protectionCost = 4.99;
  checkbox.addEventListener("change", () => {
    let price = basePrice - (checkbox.checked ? 0 : protectionCost);
    priceDisplay.textContent = `Only USD $${price.toFixed(2)}`;
  });
<input type="checkbox" id="shipProtect" checked>
<p id="price">Only USD $149.94</p>

Shipping Protection

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Samim Khan