3
Exemplo.prototype = {
minhaFuncao: function() {
this.variavelX++;
}
}
I found this sign :
apparently acting as an assignment signal (=
), but I’m not sure if he acts as an assignment sign or if he acts in a different way underneath the scenes.
Is there any difference between minhaFuncao: function(){...}
and var minhaFuncao = function(){...}
?
Hi Lucas, welcome to Stack Overflow. Your question was not very clear to me, could you please edit the question and add more details as well as a possible code example?
– Anthony Accioly
I edited the question
– Lucas Castelo
Perfect. I gave a complemented to try to help, feel free to correct my editing.
– Anthony Accioly