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.