Skip to content

Катюшкина #5

Open
NastyaKatyushkina wants to merge 4 commits into
RTF-Angular-2021:masterfrom
NastyaKatyushkina:katyushkina
Open

Катюшкина #5
NastyaKatyushkina wants to merge 4 commits into
RTF-Angular-2021:masterfrom
NastyaKatyushkina:katyushkina

Conversation

@NastyaKatyushkina
Copy link
Copy Markdown

No description provided.

Comment thread src/task_4/index.ts
const x = {m: 7};

console.log(getProperty(x, "m")); No newline at end of file
console.log(getProperty(x, "m"));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 бала

Comment thread src/task_2/index.ts Outdated
email = newmail;
console.log("email valid")
}
throw "Invalid email"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Всегда будет эксепшен, когда устанавливают e-mail в поле.

Comment thread src/task_2/index.ts Outdated
class Example {
public email: string = "";
}
function check_mail(target: object, propertyKey: string | symbol): any{
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Декоратор не будет работать.

Comment thread src/task_1/index.ts
public exec(): string
{
return 'Result of the addition operation ${this.a} + ${this.b} = ${super.exec()}'
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это не паттерн декоратор

@m-abrosimov
Copy link
Copy Markdown

итого 3 бала

@m-abrosimov
Copy link
Copy Markdown

+3 балла

Comment thread src/task_2/index.ts
}
return discriptor;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 балла

Comment thread src/task_1/index.ts
return 'Result of the addition operation ${this.a} + ${this.b} = ${super.exec()}'
return 'Result of the addition operation ${this.a} + ${this.b} = ${this.calculators.exec()}'
}
} No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 балл

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants