VS
Size: a a a
VS
ДМ
IL
DB
ДМ
IB
MM
const s = this.apiService
.getSomething()
.subscribe(
(data) => {….. s.unsubscribe();},
(err) => {…. s.unsubscribe();}
)
ДМ
🧤K
const s = this.apiService
.getSomething()
.subscribe(
(data) => {….. s.unsubscribe();},
(err) => {…. s.unsubscribe();}
)
V
E
ST
export class God {
static create() {
return [new Man('Adam'), new Woman('Eve')];
}
}
export class Human {
readonly name: string;
readonly sex: string;
constructor(name : string, sex : string) {
if (this.constructor === Human) {
throw new TypeError("Abstract class Human cannot be instantiated");
}
this.name = name;
this.sex = sex;
}
}
export class Man extends Human {
constructor(name : string) {
super(name, 'male');
}
}
export class Woman extends Human {
constructor(name : string) {
super(name, 'female');
}
}
NT
NT
NT
export class God {
static create() {
return [new Man('Adam'), new Woman('Eve')];
}
}
export class Human {
readonly name: string;
readonly sex: string;
constructor(name : string, sex : string) {
if (this.constructor === Human) {
throw new TypeError("Abstract class Human cannot be instantiated");
}
this.name = name;
this.sex = sex;
}
}
export class Man extends Human {
constructor(name : string) {
super(name, 'male');
}
}
export class Woman extends Human {
constructor(name : string) {
super(name, 'female');
}
}
L
AH
DG
AH