Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 9 months ago

Product list using objets and array

Nico Velasco•410
@Darionvr
A solution to the Product list with cart challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm proud that I could finish this challenge. It was the most difficult for me until this moment. I learned a lot and had to do lots of research to achieve this.

What challenges did you encounter, and how did you overcome them?

This challenge was very tricky because of the number of places where the prices and articles had to be shown. At first, I tried using interpolation ${}, but this did not work the way I wanted. Then I had to create another object and put all the card data inside by clicking the add to cart button, then distribute that data on every card or label.

What specific areas of your project would you like help with?

I don't know yet if there's maybe another way to do it or if this was just a long code challenge. I tried to make it shorter, but it crashed every time I tried.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Nico Velasco's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License