function func() {}
func.prototype.foo = "Var"
console.log(func.foo) // undefined
var foonew = new func()
console.log(foonew.foo) // Var
Why is func.foo unable to lookup the prototype property??
function func() {}
func.__proto__.foo = "Var"
console.log(func.foo) // Var
var foonew = new func()
console.log(foonew.foo) // undefined
When using the proto reference to the prototype it looks like the behavior is reversed.