Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics (Retired) Introducing JavaScript The JavaScript Console

Windows doesn't show the syntax error

I'm on the course that shows how to open the console , and will show errors in the syntax. However when I preview, and follow through with opening the console log, there shows no errors...

Thank you!

Steven Parker
Steven Parker
210,871 Points

Are you sure you're doing something that would cause an error?

Am just following through the instructional video on opening the console on Windows. The error is already pre-written in Workspace. The purpose of this video is to show how to use the browser console to identify the problem.

Basically my screen doesn't match what the video shows even though I follow step by step :(

3 Answers

The workspace includes the corrected scripts.js file, which is why you don't get an error. If you change "document.write" to "document.rite" and remove the first double quote inside the alert, it will produce the error.

Ann,

I just opened up the same course and opened up the workspace. If I go into the dev tools and open up the console - I get an error: missing ) after argument list. If you aren't getting any errors in your console, then I would suggest checking to see if there are any changes to your JavaScript in scripts.js.

Here is the original JavaScript: alert(hello there"); document.rite("No it works!");

Also, are you using Google Chrome like Dave is?

I have Windows and using Chrome and my console shows a error saying "favicon 8, located /favicon8.fvi.etc." but it doesn't show my Javascript file on my workspace when I saved it?