Confused about the console.log


#1

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


#2

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)


#3

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