how do i backspace from javascript calculator

JavaScript
function backSpace(){
    screenView.value = screenView.value.slice(0, - 1);
}
Source

Also in JavaScript: