I have this code:
var a = function(){
a.data = "10";
};
function a(){
a.data = "20";
};
a();
console.log("a data::", a.data);
I feel that the output should be 20, but it's 10 instead. Please help me understand the output. I've removed var
but it's still showing the same output.