const finalPrice =()=>{ const checkoutForm = document.querySelector(".checkout-form"); let orderSummary = document.querySelector(".order-summary"); if (!orderSummary) { orderSummary = document.createElement("div"); orderSummary.classList.add("order-summary"); checkoutForm.appendChild(orderSummary); } const Price=document.querySelectorAll(".single-price .value") const after = parseInt(Price[0].textContent) const shippingCost =0; } finalPrice() // Add event listeners for inputs and image-based buttons addEventListeners(textualInputs, ["change"], finalPrice); addEventListeners(imageBasedButtons, ["click"], finalPrice);