Javascript console doesn't work properly | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Javascript console doesn't work properly

I don't know if you faced this problem before but sometimes or more often. I find some difficulty using javascript console. Sometimes even if my code is written properly, it said that something is not defined or show up others error and that's very disappointing because then I try to cut and paste the same code in a script tag inside HTML and then it works properly.

20th Sep 2019, 7:33 PM
Houssein Elmi Hassan
Houssein Elmi Hassan - avatar
1 ответ
+ 1
There is definitely no such thing as the console "not working". The problem probably is when trying to access elements in the DOM. Use the load event. You can do it.
20th Sep 2019, 8:08 PM
Airree
Airree - avatar