A question about the output box in Javascript Tutorial

Hey guys,

I’ve been going through the Javascript tutorials and I’ve noticed that the output box doesn’t give any useful information without me having to add console.log(whatevers). When the tutorial was written did it used to automatically wrap things that were returned in a console.log() so that they’d show up in the output box or something? It just seems weird and I was curious if this has bothered anybody else or if there was any speculation on it?

Thanks!

some editors would print the last thing to the console (like browser console, or repl.it), but it’s their behaviour

that’s normal behaviour for code like javascript, you don’t know what’s the value of stuff if you don’t use console.log statements

Yes, that used to be a feature. Now, you must add console.log statements to see values produced by the code/functions.

1 Like