Console.log use and its role

Console.log use and its role
0.0 0

#1

Hello people,
I am new to JavaScript, and just wanted some help to understand the role of console.log().
Thanks.


#2

Console.log()'s roll is to send messages straight to the developer console, and is usually a good thing to use when debugging or testing projects. Obviously when you first start out in JS, your “console” is the black window on the left of your screen. However later down the line if you do personal projects, your console will be your terminal window. Your terminal window is what you’ll use to access git which you don’t have to worry about quite yet. Additionally, console.log will also send text to Chrome’s developer console. Best way put, it’s a way to do some tests without rendering data on a web page