Console.log vs calling


#1

I dont know when to use console.log at the end of the page and when to call the function itself. Sometimes they ask for console.log and sometimes they just call the function . When do we use what ? Thank you !


#2

console.log() logs something to the console
the function call executes a function, console.log() is also a function call to a built in function.

When to use what? Depends on your program


#3

thanks so much , made it so much easier to understand !


#4

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