var a = {
value:2,
toString:function()
{
console.log("........");
return PPthis.value;
}
}
if(a==3 && a==4){
console.log("JS is amazing");
}
as above, using toString will output "JS is amazing". If I try to replace it, such as toLocaleString, it won"t be output. what feature of JS makes this?