Can someone explain Javascript constructors to me:
function Foo(){
this.bar = "bar"
}
my_foo = new Foo
Does new construct and object and then run Foo on it?
The scoping is a bit confusing.
People succeed in answering Rich Collins's questions 37% of the time (32 successes in 86 attempts).