P
P
Polly3332021-06-30 21:10:16
JavaScript
Polly333, 2021-06-30 21:10:16

I can not understand why null is displayed in the console with document.querySelector?

60dcb30dd0664407940823.jpeg60dcb31665aaa360319590.jpeg60dcb31decb50963349178.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-06-30
@Polly333

Because the script is connected BEFORE the desired element

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question