Deepak – 05-50 Aug 31
Hello everyone, i'm trying to understand the
else
part of the code.
In my understanding, If i was suppose to addToCart i would push the item to cartItem
but here i am returning the item. can anyone explain me how does this work ?5 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Thanks, i think understood. I was confused that why aren't the pushing the item to cart but it is pushing on if statement where it checks if the item exist.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Yeah , i got it
This thread hasn’t had any activity in 12 hours, so it’s now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1014411888735555654