Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Loops, Arrays and Objects Simplify Repetitive Tasks with Loops For Loops

JavaScript Loops, Arrays, and Objects: For Loops

Dave McFarland:

Something is wrong with this lesson. I save the HTML code in the index.html file & the JavaScript code in the scripts.js file in my Workspace Then I click on "Preview" & the IE 11 browser doesn't respond. I see only the Workspace file name or the "Circles" title from the index.html file for the file name. I've re-launched my Workspace several times & the IE 11 browser continues to spin its blue arrow in circles. I don't see the grey circle divs with the numbers inside them write to the page.

Jake Lundberg
Jake Lundberg
13,965 Points

Can you please post your code so we can try to help you?

4 Answers

Jake Lundberg:

It's not my code. I've verified that it's identical to the video lesson. It has something to do with the pre-prepared code Dave McFarland wrote for this video lesson or the IE 11 browser on the computer I'm using at Worksource Oregon. If I press the F12 key for the JavaScript console, I get a message that says "treehouse-app.com is not responding due to a long running script." I'm not seeing the grey circles with the numbers in them on my page at all. All I'm seeing is the file name of the Treehouse Workspace or the title "Circles" for the file name at the top. That's all.

Jake Lundberg
Jake Lundberg
13,965 Points

Sounds like there may be an infinite loop somewhere...have you tried running it in another browser?

Jake Lundberg:

Not yet. The only other option I have is Google Chrome here. The Multnomah County Library has Mozilla Firefox.

Jake Lundberg
Jake Lundberg
13,965 Points

Or, post your code here, and I can run it in another browser and see what happens...

Jake Lundberg
Jake Lundberg
13,965 Points

try it in google chrome and see what happens.

Jake Lundberg:

Hmmm. The code works in Google Chrome, but not IE 11. I've been using the same computer with IE 11 & didn't have a problem in Web Design or Front End Development until now. I don't know if the spacing after the first ( parentheses & before the end ) parentheses in the document.write command has any effect on it or not. It doesn't make a difference in Google Chrome that I could tell. It could be a local network server problem, too. I don't always see the "Circles" title at the top of the page after clicking the "Preview" icon. I see the treehouse-app title of the Workspace instead sometimes. When I press the F12 key, then I get the long running script error message.

I'm going to give this a rest for today & try it again tomorrow morning using both IE 11 & Google Chrome & see what happens. Thanks for the help anyway.