It sounds like you're on the right track to the store and update results dynamically, you might need to adjust how you're handling the previous Num and currentNum
updates before applying the operator. Consider using a temporary variable to store intermediate results before assigning them. Also, debugging with console.log()
at each step can help track where the logic breaks.By the way, if you're into precise calculations, check out our IPPT Calculator—a great tool for tracking fitness performance with accuracy.