JavaScript JavaScript Basics Introducing JavaScript The Console Challenge Answer

Rodi Haas
Rodi Haas
1,504 Points

i do not understand for what they use the console.log??

i understand where i can find it. but that's it

3 Answers

Lauren Stuckey
Lauren Stuckey
12,428 Points

Hey Rodi, as you learn more about JavaScript you'll find that console.log has many uses for helping programmers to keep track of what is going on in their code. It is a useful place for someone working with the code to see what is going on "behind the scenes" without displaying the content on the webpage itself. In addition, console.log is often used for debugging code since it allows you to see exactly which parts of your code are running correctly, and which are not.

John McCall
John McCall
2,629 Points

You can use the console.log, to show that the program has "started" and "finished" so that you know there was nothing that was missed because the program made it to the last line! It's an awesome way to make sure everything ran!

Gianni Zamora
Gianni Zamora
9,547 Points

You can also use console.log in mathematical operations to help you build bigger applications.