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.
5c99e1b921889970288881.png
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');

console.log(input.value);

Find more questions by tags HTMLJavaScript