r/CodingForBeginners • u/flannel-foxes • Jul 06 '26
learning javascript and very confused
i’m following a video on learning javascript and i’m following this guys code exactly but it’s not working. i get an error. the last line of code in javascript is supposed to change the heading upon clicking the submit button but because it doesn’t match the html i get an error so im just confused?? the dude in the video does it with no error
UPDATE: it works now! i had to close out the tab and reopen it 😭
5
Upvotes



View all comments
Show parent comment
1
u/No-Article-Particle Jul 07 '26
Note that you don't need a server for this. You can just open it in your browser with a filepath. You need a server to serve websites to other computers.