Skip to content

lesson1 done#1

Open
ArchibaldovRPtech wants to merge 1 commit intomainfrom
lesson1
Open

lesson1 done#1
ArchibaldovRPtech wants to merge 1 commit intomainfrom
lesson1

Conversation

@ArchibaldovRPtech
Copy link
Copy Markdown
Owner

No description provided.

Comment thread js/main.js
];


const renderProduct = (title = 'Товар отсутствует', price = 0) => {
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 js/main.js

const render = productsList => {
const productsElements = productsList.map(item => renderProduct(item.title, item.price));
document.querySelector('.products').innerHTML = productsElements.join('');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

совершенно верно, решение правильное

Copy link
Copy Markdown

@AndrewRimsky AndrewRimsky left a comment

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