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

Development Tools Website Optimization Chrome DevTools Basics The Profiles Panel

How to tab down to next line in Console without running the code?

Confused about Console: When I try to copy what Nick writes in Console for the loop test, I am unable to write the code and drop a curly bracket to the next line using the enter key. It executes the code and gives me an error. "Uncaught SyntaxError: Unexpected end of input"

What am I doing wrong? Thx

3 Answers

Ben Spears
Ben Spears
19,148 Points

Shift+return is the way to go.

Try entering a backslash \ at the end of the line before pressing return.

You can also just type the code in some text editor and paste it into the console.