The code inside the C button’s logic works, but since it's part of the if conditions without an else if structure, it could be accidentally triggered. Nest if (clickedbuttonValue === "C") in an else if block to ensure it only runs when other conditions aren't met.
https://github.com/tanzie1313/dom-events-lab/blob/1de704413308b8099e5a997f9813af15190b2682/app.js#L66
The code inside the C button’s logic works, but since it's part of the if conditions without an else if structure, it could be accidentally triggered. Nest if (clickedbuttonValue === "C") in an else if block to ensure it only runs when other conditions aren't met.