+ 1

Reset button not working

HOW CAN I GET THE RESET BUTTON TO CLEAR EVERYTHING I TYPED ON THE RED BOX WHEN I CLICK IT?? https://code.sololearn.com/W8OBLSvZQ9O2/#html

19th Apr 2019, 2:31 AM
Glory222
Glory222 - avatar
4 Answers
+ 2
Under the function reset, instead of removeEventListener, do the same thing you were doing previously: Setting the textContent, but this time you use an empty string. document.getElementById("wr").textContent = "";
19th Apr 2019, 3:04 AM
Luis SepĂșlveda
Luis SepĂșlveda - avatar
+ 1
Thank you bro I'm so happy here at sololearn such positive people 👍👍👍😍
19th Apr 2019, 4:48 AM
Glory222
Glory222 - avatar
+ 1
Monical thank built want to display numbers as much as I click the buttons
19th Apr 2019, 12:37 PM
Glory222
Glory222 - avatar
+ 1
Thanks it works but I have one question. WHAT DOES THE 'E' doing in the function? https://code.sololearn.com/WvIzm5XoekIz/?ref=app
19th Apr 2019, 2:15 PM
Glory222
Glory222 - avatar