Learn Create Your Own Split Screen

Next Page

Handling the Clear button is very straightforward.

It simply sets the display to empty, and resets the running result variable.

function DoClear() { numdisplay.innerText = ""; running_result = ""; }