filmov
tv
oop - JavaScript: Class.method vs. Class.prototype.method

Показать описание
#short
#javascript
#oop
#prototype-programming
What is the difference between the following two declarations?
Is it okay to think of the first statement as a declaration of a static method, and the second statement as a declaration of an instance method?
#javascript
#oop
#prototype-programming
What is the difference between the following two declarations?
Is it okay to think of the first statement as a declaration of a static method, and the second statement as a declaration of an instance method?