Reputation: 114126
The Firebug addon for Firefox supports a multiline Console, but how do you return values to show up in the Console's output? When I press "Run", all I see is a copy of my source code.
Upvotes: 0
Views: 1548
Reputation: 7635
Are you looking for console.log(obj);
or console.log("hello world");
?
Upvotes: 2
Reputation: 114126
Okay, I got it. The last line of the multiline source code must return a value, to be outputted.
Eg.
var myVar = myFunction();
myVar;
Upvotes: 0