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
2009-07-23 16:09:20
Funny thing how I'm answering my own question, and in record time too!
Jenko
2009-07-23 16:12:01
+2
A:
Are you looking for console.log(obj);
or console.log("hello world");
?
Brian Ramsay
2009-07-23 16:19:15