Can somebody explain the difference?
function Constr(name){
this.firstname=name;
this.log=function(){
console.log(this.firstname);}
}
And
function Constr(name){
this.firstname=name;
this.log=function(){
console.log(name);}
}
Is there a difference using the property or the argument?
Many Thankd
Greetings KAT