function Myfunc()
{
this.a = 10;
a = 20;
alert(this.a);
alert(a);
}
Myfunc();
O/P: 20,20
What is the differnce bw this.a = 10; and a = 20; in the above code?
function Myfunc()
{
this.a = 10;
a = 20;
alert(this.a);
alert(a);
}
Myfunc();
O/P: 20,20
What is the differnce bw this.a = 10; and a = 20; in the above code?