ecommerce product page using Vanilla Javascript

Solution retrospective
i was able to do the image slider and also change the thumbnail images
What specific areas of your project would you like help with?I'd appreciate any feedback.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@Lo-Deck
Hi well done for this challenge,
I'll give this link you check out the mistake for HTML and CSS. 3WC validator. It's useful before releasing a website to check out your mistake like
element img not allowed as child of element ul
.It's better to use
em
orrem
instead ofpx
. FreeCodeCamp. FreeCodeCamp.There is some error with JS when I select an amount of shoes, in the cart it multiples the item by this amount.
I think you do this
let increment = ()=>{ incrementBtn.addEventListener('click', ()=>{ count ++; qty.innerHTML = count; qtyTotal.innerHTML = count; addToCart(); }) }
If you click 3 times on the button to have 3 pairs of sneakers, you have your function addToCart() running 3 times.
Your JS need some improvement to correct the error. like the console sent me
document.querySelector(...) is null line 205
Hope to be helpful.
Marked as helpful - @raozhaizhu
nice code bro
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord