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 Basics (Retired) Introducing JavaScript Review Adding Scripts and Simple JavaScript Commands

what is the code following "Program complete" is written to the browser's JavaScript, console.____("Program complete");

please help

2 Answers

You can find the answer within this page or by watching the previous video @ 3:50.

It is something you'll want to learn how to use as it's very useful for debugging.

I can't really improve on Kris's answer. There are a few different console methods, but the one you will use 99.9% of the time is the one being asked for here. Once you look over the link Kris provided, just remember it's a "console" method and not a "document" or "window" method. Those other ones are for outputting to an HTML page using the DOM. You want to print to the console, so scroll through that link until you see the console method. You will get to know it well.