#beginner JavaScript help!

1 messages · Page 1 of 1 (latest)

weak rose
#

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 🆘

somber torrent
#

can u share the index.html file?

austere summit
#

Hey Ruben! haha I was just about to ask the same thing

weak rose
#

html file

somber torrent
#

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

austere summit
#

in index.html the id is welcome-el and in index.js the id is welcomeEl-el

weak rose
#

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

somber torrent
weak rose
#

@somber torrent ohh okay got it. thank you so much! i appreciate your help 🤗

somber torrent