What is Console.log? Just wanted to know more on this topic about what it is used for?


I have just started learning coding.

console.log(2 * 5)


console.log() logs something to the console, it is mostly used for debugging.

you can read more about browser consoles here, for the ease of the exercise, codecademy provides a console (output window) in the lesson


thanks stetim for the link


its like Print for python, i mean it basically does the same thing


no, console.log() will log to a console, print will display output in a command line, they are different


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.