Html and js
I've created a function call using a button/onclick within my html but I cannot get it to work? Any advice please: <button onclick="calculateInsulinBolus()"> calculateInsulinBolus(carbohydrates,carbToInsulinRatio,currentBloodGlucose,targetBloodGlucose,insulinSensitivityFactor); { Â carbohydrates = parseFloat(carbohydrates); Â carbToInsulinRatio = parseFloat(carbToInsulinRatio); Â currentBloodGlucose = parseFloat(currentBloodGlucose); Â targetBloodGlucose = parseFloat(targetBloodGlucose); Â insulinSensitivityFactor = parseFloat(insulinSensitivityFactor); const carbohydrateBolus = carbohydrates/carbToInsulinRatio; const correctionBolus = (currentBloodGlucose - targetBloodGlucose) / Â insulinSensitivityFactor; const totalInsulinBolus = carbohydrateBolus+ correctionBolus; return totalInsulinBolus; }