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

What is the point of the console on Javascript ?

I just started intro to programing and I couldn't understand why we using the .console from beginning on java script with out explaining the basic of it.

2 Answers

Using the console is an easy way to get you into programming if you've never done any before especially JS it allows you to see how JS works and the simple things that you can do i dived straight into programming with a clue and flopped miserably but using a console allows you too see how things works as well as things that you can and can't do when following the programming language

James Barnett
James Barnett
39,199 Points

Console.log is an easy way to get output from a JavaScript program. If you want to do something simple when you are writing your first program you can do something like console.log("hello world") or console.log(1+2).

Console.log was introduced in the Writing Your Program video of the Introduction to Programming course here on Treehouse.