
Nefunkční class v JS
Ahoj, proč tohle nefunguje?
var temp = class {} ;
temp.foo(){
condole.log('temp.foo')
}
temp.bar(){
condole.log('temp.bar')
}
temp.foo();
temp.bar();
Ahoj, proč tohle nefunguje?
var temp = class {} ;
temp.foo(){
condole.log('temp.foo')
}
temp.bar(){
condole.log('temp.bar')
}
temp.foo();
temp.bar();