Skip to content

Сулейманов Эмиль#13

Open
theSweater23 wants to merge 1 commit into
RTF-Angular-2021:masterfrom
theSweater23:suleymanov_emil
Open

Сулейманов Эмиль#13
theSweater23 wants to merge 1 commit into
RTF-Angular-2021:masterfrom
theSweater23:suleymanov_emil

Conversation

@theSweater23
Copy link
Copy Markdown

No description provided.

Comment thread src/task_1/index.ts

public takeMoney(moneyUnits: Array<IMoneyUnit>) {
this._repository = this._repository.concat(moneyUnits);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Нет реализации
0 балов

Comment thread src/task_2/index.ts

public authorize(userId: any, cardId: any, cardPin: any): any {

public authorize(userId: string, cardId: string, cardPin: string): boolean {
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_2/index.ts
this._users.forEach(user => {
user.cards.forEach(card => {
if (card.id === cardId)
return true;
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_2/index.ts
})
})
return false;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 балов

Comment thread src/task_2/index.ts
public getCardById(cardId: string): ICard {
this._cards.forEach(card => {
if (card.id === cardId)
return card;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Этот return завершит цикл, но не вернёт значение функции getCardById

Comment thread src/task_3/index.ts
this._user.name = newName;
return true;
} else
return false;
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_3/index.ts
return this.changeUserSurname(argsForChangeFunction);
else if (option === UserSettingOptions.newCard)
return this.registerForUserNewCard(argsForChangeFunction);
}
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_4/index.ts
this._moneyRepository.giveOutMoney(sum, toCurrency);
}
return null;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Нет решения
0 балов

Comment thread src/task_5/index.ts
{
this._currencyConverterModule.convertMoneyUnits(fromCurrency, toCurrency, moneyUnits);
}
}
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 бала

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