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; }