Console.log
By: Cratecode
In the previous lesson, we used console.log()
to send output to the console.
But what is console.log()
actually doing?
console.log
is a method used to print output to the console. It takes in input (called arguments) and writes them to the console. For example, I could write console.log("test")
to print test
to the console. I can also use console.log
to print out numbers to the console: console.log(59)
. Check out the code example to see how else console.log
can be used.
Hey there! Enjoyed the lesson? Consider sharing it with others - it's a huge help and lets us keep making them!