1. Inventory and category Initialization: provided
2. Adding a Product
Error handling with validation by showing log error message
if the product object has all required properties
if the product ID is unique to prevent duplicates optional
3. Finding a Product
Error handling if the product doesn't exist in the inventory by showing log error message
4. Updating Stock
Error handling with validation such as 'enter the wrong product_id' or 'update stock < 0 by showing log error message'
5. Deleting Product
Confirm message when successful deleted
jsd-genkx / web-js-mini-project-maliojiw Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jsd-genkx/web-js-mini-project