How to divide the price by 2 using JS? I tried this but it didn't work.
<script>
const a = parseInt(document.getElementById('price_value').textContent)
const b = 2
const result = a / b
document.getElementById('result').innerHTML = result
</script>
<body>
<span class="wcpa_price"><span class="woocommerce-Price-currencySymbol">$</span><span class="price_value">29.00</span></span>
<div id="result"></div>
</body>