}
};
var x={
ff:function(num){
}
};
var x={
ff:function ff(num){
}
};I know it is not appropriate to have methods like it inside dynamic objects. (cause duplicate codes)
probably not - but I'm not in a shape to confirm either way
The first two are the same. The third one has the addition that the identifier ff will point to the function, not just this.ff or x.ff, since it's a named function.
Обсуждают сегодня