Confused about the console.log


What’s the different between call a function and log that function? I thought it should be same. But there is an extra undefined value in the log version.26%20PM


functions return undefined by default, unless you use a return keyword and return a different value. If you use console.log() on (in this case startCount) function, it will log the returned result (again, undefined by default)


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