Skip to content

Conversation

@ghostnastromo
Copy link
Owner

No description provided.


let products = []

let cart = {
Copy link

Choose a reason for hiding this comment

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

Меня больше пугает, что вы TAB не используете для того, чтобы код читабельнее сделать :(

Copy link
Owner Author

Choose a reason for hiding this comment

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

Косяк, согласен, каюсь, учту.

}
}

function addProduct (id) {
Copy link

Choose a reason for hiding this comment

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

Очень хорошая реализация. По-моему вы прибедняетесь, говоря, что не ведаете =)

Copy link
Owner Author

Choose a reason for hiding this comment

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

По правде сказать ,я поступил так от безысходности.
Мне казалось, что эта идея абсурдна и неверна.

<body>
<script>
//Задание №1
function createObject(num) {
Copy link

Choose a reason for hiding this comment

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

Это задание можно сделать прям в разы проще и современнее)

Copy link
Owner Author

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.

3 participants