You are browsing as a guest. Sign up (or log in) to start making projects!

1h 41m 47s logged

Devlog-1

Hello, Im working on a amazon project through a tutorial by SuperSimpleDev so apart from the tutorial heres what I did following the optional exercises:

  1. When added to cart is clicked a green pop-up shows up ‘Added to cart’, it dissapears after 2 seconds using setTimeout, however, we needed it to reset everytime the button was pressed so i created an object with timeouts specific to item ids and checked if the timeoutId existed in the object, if it did Id clear it and after clearing or if it doesnt exist Id just add another timeout and append it to the object.
  2. I made it so that the selector functionality worked where you can select a number of quantities and it would display accurately in the console (for now), this is different as in the tutorial only ‘1’ quantity can be added so fat
0
3

Comments 0

No comments yet. Be the first!