JavaScript JavaScript Basics Introducing JavaScript The Console Challenge Answer

Uncaught SyntaxError: missing ) after argument list I keep getting this even after i comment out all the lines

As described in the title. I have double checked the program and even commented out all the lines in the scripts.js. However this error message still shows up and the pop-out windows is not working。 scripts.js:

alert("Help me fix this program!");
alert("Can you get this message to appear?");
document.write("<h2>My first JavaScript program</h2>");
document.write("<p>I'm practicing 'debugging'.</p>");

No one can help you if you don't post your code. heres a reference on how to post your code. https://teamtreehouse.com/community/posting-code-to-the-forum

Jacob Cordeiro hi Jacob, thanks for your reply. Im new to the discussion and i have posted the code as u said. Could you help me to take a look?

2 Answers

Sergey Podgornyy
Sergey Podgornyy
20,653 Points

It looks fine in JSfiddle. Try refresh your page with Ctrl+F5

Is you js file linked to a html file? I agree with Sergey Podgornyy that there isn't a syntax problem.