Skip to content

task to lesson 2 - #8

Open
zagidulin wants to merge 1 commit into
masterfrom
JS_2_les_2
Open

task to lesson 2#8
zagidulin wants to merge 1 commit into
masterfrom
JS_2_les_2

Conversation

@zagidulin

Copy link
Copy Markdown
Owner

No description provided.

@Tardigrada777 Tardigrada777 left a comment

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 basket_script.js
this._getBuyings();
let html = '';

this.buyings.forEach(({ title, price, quantity, link }) => {

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 basket_script.js
this.buyings = [];
}

_getBuyings() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Смысл понятен, но я думаю, что для этого метода стоит выбрать другое название. Это не просто правила хорошего тона, но и вообще признак профессионализма.

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