tanzie1313 / dom-events-lab

0 stars 0 forks source link

disappearing numbers #2

Open DigitalPhoneme opened 2 weeks ago

DigitalPhoneme commented 2 weeks ago

https://github.com/tanzie1313/dom-events-lab/blob/1de704413308b8099e5a997f9813af15190b2682/app.js#L30

display.innerText = " "; in handlebuttonClick clears the display every time a number button is clicked, causing only the last number clicked to show. Fix: Move display.innerText = " "; outside of the handleNumberClick section so that it only clears on initial load or when an operator is pressed.

tanzie1313 commented 1 week ago

I actually moved it out completely just too see...and it was throwing that whole handlebutton clicked off. it was not needed bc rest of the logic. I really appreciate the feed back and help

tanzie1313 commented 1 week ago

I actually take that back...sorry my bad. so for example if we want 46 instead of 4 and 6 let me get that working .