w
Object
Size: a a a
w
Object
w
w
В
В
w
объектно
-ориентированное программирование)w
w
prototype
В
prototype
w
w
class Test {
constructor(){
this.test = 1
}
}
const test = new Test()
В
w
w
new Test()
w
Test.prototype.getValue = function(){
return this.test
}
w
w
P
P
P