New course! Every coder should learn Generative AI!
Try a free lesson0
How to access an object inside iteration of array in express handlebars
2 Answers
+ 2
For example
+ 1
{{#each product}}
<button onclick="addToCart('{{this._id}}','{{user._id}}')>Add To Cart </button>
{{/each}}