BananaMaster

31 - Product Card Generator, for loop practice (JS lessons)

If you forgot something, click to go to the lesson

๐Ÿ“˜ Task: Product Cards

Build a "Product Cards" application.

After clicking the button:

๐Ÿ“ Each card must contain:

๐Ÿ“ HTML structure of each card:

<div class="card"> 
<h2 class="card-name">Product 1</h2>
<p class="card-price">100$</p>
<button>Buy</button>
</div>

๐Ÿ“ How it works:

๐Ÿงช Example:

Product 1

100$

Product 2

200$

Product 3

300$

Product 4

400$

Product 5

500$

Product 6

600$

๐Ÿ“Œ Important:
Product numbering must be generated through the for loop. Do not change anything in the HTML.