SyntaxFix
Write A Post
Hire A Developer
Questions
Objects, {} in JavaScript does not have the method .map(). It's only for Arrays, [].
{}
.map()
[]
So in order for your code to work change data.map() to data.products.map() since products is an array which you can iterate upon.
data.map()
data.products.map()
products