Why do I get 2 different output when I run in Chrome -> DevTools -> Sources and when I run in JSFiddle.
The code which I run is as follows
function foo() {
this.baz = "baz"
console.log(this.bar + " " + baz);
}
var bar = "bar";
var baz = new foo();
console.log(baz.baz)
Output in chrome
undefined [object Object]
baz
Output in JSFiddle
"undefined undefined"
"baz"
Essentially chrome is telling me that baz is an object of type {baz:"baz"} but jsFiddle tells me it is undefined.

