I am trying to learn Javascript but I am finding this prototype concept very confusing someone helps me with this code snippet
var func = function (){};
func.prototype = {m:9};
func.prototype.m; // That logs 9
func.m; // That logs undefined
Why is the delegation not working in this case?