7
I have a Function where I assign values in this, why it will be instantiated
function Teste(){
this.valor='Valor no this';
return "Valor no return";
}
I urge her
var t = new Teste();
But now, like me for the string "Valor no return"
?
console.log(t.valor);
console.log(t.return);//?
Code running here: http://jsbin.com/zariyo/1/edit
Because the guy deserved -1?
– Wallace Maxters
I don’t know, it wasn’t me.
– bfavaretto
The comments should explain why, but anyway...
– Wallace Maxters