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

I have an infinite loop in a tab I can't close.

I have a console.log statement that is running in a infinite loop and I can't close the tab, what do I do?

3 Answers

Hey Caleb,

If you're using Chrome, Shift-Esc to bring up the Chrome task manager, and kill the task.

Edit: For future reference, on a mac, you can also access the Chrome task manager. Choose the Chrome hamburger menu -> tools (or "more tools" - not sure as I'm on a pc right now) -> task manager

Greg Kaleka , thank you! shift+esc worked fine on windows!

Ctrl+Shift+Esc and close the program

I was on a Mac so I did Command-Opt-Esc, and force quieted Chrome.

Yeah, that'll work, though it's not ideal. See my edit above.