views:

117

answers:

2

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.

A: 

Okay, I got it. The last line of the multiline source code must return a value, to be outputted.

Eg.

var myVar = myFunction();
myVar;
Jenko
Funny thing how I'm answering my own question, and in record time too!
Jenko
+2  A: 

Are you looking for console.log(obj); or console.log("hello world");?

Brian Ramsay