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.
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.