Clear function | Sololearn: Learn to code for FREE!


Clear function

I'd like my reset function to also reset my output area with the id "result" inside id "resbox". Can someone send a working code? Thank you

7/22/2020 12:10:53 PM


1 Answer

New Answer


you would just make a reset() function put in it output = document.getElementById(“result”) output.innerHTML = “” just as you did when you calculated the result