What is Console.log?

Tell us what’s happening:
I understand the format but I don’t understand why console.log(); in the function can print something out. Would i need to make a variable first? I guess my question is “What is console.log”?

Your code so far

// Example
function ourReusableFunction() {
 console.log("Heyya, World");


// Only change code below this line
function reuseableFunction(){
 console.log("Hi World");

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Safari/605.1.15.

Challenge: Write Reusable JavaScript with Functions

Link to the challenge:

You have met one of the most important debugging tools of a programmer.
Whatever value is put inside the round parenthesis of console.log() is printed to the console.
console.log() is already built in the language. Like many other things you will meet in the curriculum.

1 Like