A single-page website created to help complete beginners learn HTML with JS added to help beginners learn JavaScript. Supports https://developer.mozilla.org/en-US/Learn/Getting_started_with_the_web/JavaScript_basics
I'm trying to learn JS basics, however also got stuck with this error
TypeError: myImage is null (as it was mentioned in closed issue)
in the line:
myImage.onclick = function() {
At the same time, if I put the script just in js console in browser, it works. Maybe it's connected with Visual Studio Code, I'm writing in. I've tried both relative and absolute paths.
I'm trying to learn JS basics, however also got stuck with this error TypeError: myImage is null (as it was mentioned in closed issue) in the line:
myImage.onclick = function() {
At the same time, if I put the script just in js console in browser, it works. Maybe it's connected with Visual Studio Code, I'm writing in. I've tried both relative and absolute paths.