JavaScript JavaScript and the DOM Responding to User Interaction Functions as Parameters

Nas Jones
Nas Jones
5,692 Points

Error

I completed this video already but i went back to play around with the function and in the console it says uncaught syntax error invalid or unexpected token. I have the same code as in the video i dont understand why it's giving me an error. This is a snapshot to my code https://w.trhou.se/y0z0ccrrld

1 Answer

Hi Nas,

in your temp.js you need closing tag for your comment. Line 23.

Nas Jones
Nas Jones
5,692 Points

Thank you for the help, that fixed it