JavaScript code program

Data source fullstack javascript code

Do you have any particular question? I don’t understand what you are asking about

1 Like

Hi, I’m the first year student and because of my job it was hard for me to attend a seminar at JS, I’m facing some of the requirements 2 of which I can not do, can you help me please?

I’ve put here what I’ve done so far for JavaScript

and I have these requirements that I can not do

Adding products to your shopping cart is done on the event click on the add class item. If there is a product with the same name in the cart, it will increase its amount. If the product no longer exists in the shopping cart, the quantity will be 1. To add to the shopping cart, the content of the template item will be clustered with id item-basket-template. Values ​​for cells with price and total classes will be set. Set or update the value for the input with the quantity class. The cloned element will be added to the page in the element with the item id. After adding, the date-index attribute is updated with the current index in the shopping cart

2.When clicking on the item with the remove class will delete the product from the shopping cart. You can use the data-index attribute to identify the element index.

can you help me please, I struggled until 4 in the morning and I do not get out

I see you have created a new topic with the same. In the future, just create a topic for your question instead of adding your question to an unrelated topic. Thank you.

1 Like