Skip to content

Add files via upload - #6

Open
GAS53 wants to merge 1 commit into
mainfrom
lesson_5
Open

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

Conversation

@GAS53

@GAS53 GAS53 commented Apr 13, 2022

Copy link
Copy Markdown
Owner

No description provided.

@Akseonov Akseonov 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 2/soruse.js
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 thread 2/index.html
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