Jak zresetować pole wejściowe w JavaScript

document.querySelector('#counter').value = '';
Uptight Unicorn