Both during debugging to see what the user typed in an input?

All zdarova)
The question is, how can I see how a text value is input?
Here is the input.
This must be done without libraries es5.
I tried using var = input.value - but the text you entered in the var is not displayed.
Set the correct train of thought please.
March 19th 20 at 08:37
1 answer
March 19th 20 at 08:39
var input = document.querySelector('#foo');


Find more questions by tags HTMLJavaScript