Hi guys! Can anyone see why I get “undefined” printed to the console?

Well I mean look at what value you sent to console.log and then look at where it’s coming from. Keep following it backwards until you are at the location where it stops being undefined.

And if you expected fewer outputs, try using console.log fewer times. That would be the problem, wouldn’t it? To use console log more times than you want to write output?

1 Like