0
Cannot read property 'addEventListener'
Uncaught TypeError: Cannot read property 'addEventListener' of null
5 Respuestas
+ 3
element=document.querySelector("#btn");
querySelector use css selector syntax ;)
+ 1
you probably attempt to access a dom element either wich doesn't exist or is not available when getting its reference...
without your code, enumerating all possible solutions would be too long: share a link to it ^^
0
Not able to understand and debug even from previous asked questions.
0
oh man 😍👍