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 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.