I am trying to print something in prototype function using setInterval it's showing undefined in console.
function newFunc(){
this.name = "this is person name";
this.Age = "16 Years";
}
newFunc.prototype.init = function(){
setInterval(function(){newFunc.prototype.xyz()}, 1000);
}
newFunc.prototype.xyz = function(){
console.log(this.Age);
}
var abc = new newFunc();
abc.init();