Hi, I am new to Javascript and need to make a diabetes risk calculator.
I Have a form with radio buttons in HTML the user selects 1 of 4 answers per question.
On submission based on their answers it returns a block div underneath stating the risk etc.
I have no idea where to begin to make the javascript achieve this?
Could anyone help guide me as the study notes I have don’t cover this topic.
Do I use an array, function, if statement?
I think i do this but don’t know how to do the calulation
document.getElementById(“age”).select();
Any help or tips would be great please
Thanks