Entonces, al hacer clic en un botón, ejecuto algunas matemáticas básicas y cambio el texto interno de algunos elementos, que sé que en realidad se refieren a los elementos HTML. Tampoco recibo ningún error en la consola.
Código JS:
buypaper.addEventListener("click", function() { if (pcls >= papercost) { earn(-papercost); papercost += (papercost / 100) * 30; papercost = Math.floor(papercost); paper += 1; ppc += 20; papercounttext.innerText = `you have ${numberWithCommas(paper)} sheets of paper`; // where i suspect the error is happening papercosttext.innerText = `price of next sheet of paper: ${numberWithCommas(papercost)} pencils`; ppctext.innerText = `you make ${numberWithCommas(ppc)} pencils/click`; } });¿Alguien puede ayudar?