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


#1

I have just started learning coding.

console.log(2 * 5)
console.log("Hello")


#2

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


#3

thanks stetim for the link


#4

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


#5

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


#6

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