+ 1
I create object event InputEvent. I have error . Thanks you sir.
Error event listener Input. https://code.sololearn.com/WNG6iE4O39uj/?ref=app
2 Answers
+ 6
The question is repeated and answered before. Please cancel one of them.
+ 5
There needs to be a keyword "function" before function name in addEventListenerMethod.
You declared const before document.getElementByid.
Also it is event not e .
Correct code is as follow,
input.addEventListener ("change",function updateValue (event) { const input = document.querySelector ("input"); document.getElementById("log"); log.innerText = event.target.value;})