Error 1: Uncaught TypeError: Cannot set property 'onchange' of null at script.js:17 (anonymous) @ script.js:17 1141script.js:12 Error 2: Uncaught TypeError: Cannot set property 'innerText' of null at script.js:12

let value1= document.getElementById(‘value1’)
let value2= document.getElementById(‘value2’)
let value3= document.getElementById(‘value3’)
let inpspeed=document.getElementById(‘inpspeed’)
let values=[
‘&#128539’, ‘&#128541’, ‘&#128540’, ‘&#128556’, ‘&#129299’
]
function getRandomvalue(){
return values[parseInt(Math.random()*5)]
}
setInterval(() =>{
value1.innerText=getRandomvalue()
value2.innerText=getRandomvalue()
value3.innerText=getRandomvalue()

},300)
inpspeed.onchange=function(ev){
console.log(‘Value Changed’, ev.target.value)
}

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.