+ 2
Better way to define prototype properties
Which way to define prototype properties is better? pro.prototype.test = function() {}; or pro.prototype = { test: function() {}, ... };
2 ответов
+ 3
I always used the first one as I liked it more.. But it is arbitrary!
+ 2
thank you for answer, drax :-)