Check javascript code

can anyone check my code, please?
tell me what is the problem? the scores of academic and general are showing the same rather than different. don’t know what is wrong can anyone tell me ??
https://codepen.io/supan_deep/pen/ExgYeZx

Hi, I don’t know exactly what’s wrong, but when I put an alert into your calculateScore function, it’s definitely not matching up with the radio button I selected:

let selectedModule = isReadingChecked?isReading1Checked ? "reading":"gtreading":"listening";
alert(selectedModule);

For example, if I selected “General Reading”, the alert said “listening”.

Also, “gtreading” sounds like a typo to me.

Hope that helps!

1 Like

thanks katya .
I am trying