hi! can someone please help me fix this or understand what I'm doing wrong, after I set the inner.text = greeting + name the name continues to show up as deprecated, I'm very new at this and don't know what to do, I've looked up online but can't seem to find the answer or understand. the code is not rendering at all with this 🆘
#beginner JavaScript help!
1 messages · Page 1 of 1 (latest)
can u share the index.html file?
Hey Ruben! haha I was just about to ask the same thing
html file
uhm, it could be because name might be a reserved keyword in js. You can see the line through name.
try changing the var name.
nevermind, it's because you have a typo. the p tag id
in index.html the id is welcome-el and in index.js the id is welcomeEl-el
omg wow i didnt even catch that lmaooo the line through the "name" is still showing up but the code is working when going live but in the output is still showing reference error : document is not defined
it shows the reference error when you run your code on server(node, as i see in your terminal) instead of the browser
@somber torrent ohh okay got it. thank you so much! i appreciate your help 🤗
the variables window and document doesn't exist in node.
np ty @austere summit