I create function and add property in its prototype as following
let F = function(){}
F.prototype.foo = 'abc'
My question is why it will return undefined when using the F.foo? But after using this
let F = function() {}
F.prototype.foo = 'abc'
let fn = new F()
console.log(fn.foo) // return 'abc'