I need help with my non-curriculum checkbox self practice

I am trying to code an additional calculation to occur when a checkbox is ticked. Please Help?

https://codepen.io/ayandagatsha/pen/NWrxNmd

this line of code:

musc.textContent=`Days spent training strength of muscles: ${timeSpentMuscleTraining}`;

is executed only one time when the script is loaded

wrap it in a function and call that function from your event listeners

I honestly actually love you!! Bro, you and everybody on this forum are geniuses!! I wrapped it with a few specific edits to get it exactly the way I want. :slight_smile:

2 Likes