-
Notifications
You must be signed in to change notification settings - Fork 0
Lesson4 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Lesson4 #3
Conversation
|
|
||
| let products = [] | ||
|
|
||
| let cart = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Меня больше пугает, что вы TAB не используете для того, чтобы код читабельнее сделать :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Косяк, согласен, каюсь, учту.
| } | ||
| } | ||
|
|
||
| function addProduct (id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Очень хорошая реализация. По-моему вы прибедняетесь, говоря, что не ведаете =)
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это задание можно сделать прям в разы проще и современнее)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Был рад додуматься до иного решения(
No description provided.