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.