Skip to content

Add files via upload#6

Open
GAS53 wants to merge 1 commit intomainfrom
lesson_5
Open

Add files via upload#6
GAS53 wants to merge 1 commit intomainfrom
lesson_5

Conversation

@GAS53
Copy link
Copy Markdown
Owner

@GAS53 GAS53 commented Apr 13, 2022

No description provided.

Copy link
Copy Markdown

@Akseonov Akseonov left a comment

Choose a reason for hiding this comment

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

все отлично, замечаний нету, есть предложения как улучшить код))

Comment on lines +9 to +11
for (var i in this.items) {
if (i != undefined) { this.summ += this.items[i].cost }
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

все отлично, но лучше использовать reduce, поскольку при трудоустройстве часто смотрят умеет ли кандидат использовать методы для работы с массивами или везде использует for

Comment on lines +4 to +6
<head>
<title>Корзина</title>
</head>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

забыли использовать этот тег, иначе у меня выводилось не корзина пуста, а какие-то каракули)

<meta charset="UTF-8">

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