Resetting values after input with JavaScript

10 viewsjavascript
0

how does one reset input value after a certain action is done?

I thought of using a function but logically it doesn’t seem to work, at least the way I wrote it.
I want the input value to reset after I click a button, for example.