I have a checkbox in a form and I\'d like it to work according to following scenario:
totalCost
HTML:
JS:
function handleChange(e) { const {checked} = e.target; }