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

JavaScript Basics: The JavaScript Console

(I'm using a Worksource Oregon desktop computer.) I tried to use Windows 7 Professional/Enterprise Internet Explorer 11 on this exercise. I used the F12 key to open the IE 11 console. I highlighted the "Console" tab once the console opened, but I didn't have any code appear in the console box at all to tell me where the errors were in the JavaScript file. I did use the F5 key to refresh the page, but nothing happened. What do I need to do to make the Windows 7 Professional/Enterprise IE 11 console to work properly on this exercise?

1 Answer

I haven't used IE but if the console is blank you might not be getting errors. What I do is normally console.log("Hello World") (in my source code and refresh the page) or something else to make sure that my code is running. Also if you have the opinion I recommend downloading and using chrome because their dev tools are nice and straightforward.

Specifically if you are trying to run loops or conditional statements etc I will console log one thing before the loop and something else inside the loop or condition to see parts of the code are running. Also http://jshint.com/ is a useful tool. Unless you are running an AJAX request for something similar if there are no errors the console is normally blank.

Brigette Eckert: WorkSource Oregon does have Google Chrome, but their desktop computers are set up to run on IE 11 automatically.

I investigated the Microsoft web site & it mentions using the F12 key then Ctrl + 2. See the following links: IE 11 Console: https://msdn.microsoft.com/library/bg182326(v=vs.85), Tools Menu: http://go.microsoft.com/fwlink/p/?LinkID=285857, Console Tool Ctrl + 2: https://msdn.microsoft.com/en-us/library/dn255006(v=vs.85), and IE 11 script errors: http://go.microsoft.com/fwlink/p/?LinkID=285822.

I'm going to try the F12 key & Ctrl + 2 & see what happens. It should work. If it doesn't, I'll have to ask for help again.

I tried both WorkSource Oregon Microsoft Windows 7 Professional/Enterprise IE 11 & Google Chrome JavaScript Console, & neither worked. I suspect the Microsoft Windows 7 Enterprise Mozilla Firefox JavaScript Console won't work at the Multnomah County Library, either.

Team Treehouse, Inc. uses Mac OS X & since their Workspace runs on that system, I don't think it's compatible to Microsoft Windows IE 11, Google Chrome, or Mozilla Firefox JavaScript Console. This is a brick wall to completing this module.

I'm not far enough in JavaScript yet to know how to do loops & conditional statements, nor do I know AJAX, but I'll get there eventually.

I wrote down your web link hint in my notes. Thanks for that.