I've got this simple JS script what I need to achieve is: every time the button is clicked a clone of the card is appended to container.
const card = document.querySelector('.card').cloneNode(true)
const button = document.querySelector('.btn')
const container = document.querySelector('.container')
button.addEventListener('click', () => {
    container.append(card)
})<div class="container">
  <button class="btn">this is a button</button>
  <div class="card">
    <h1>This is a card</h1>
  </div>
</div>Nothing too hard. The first time I click on button everything work fine. Why the next time the button doesn't append a new clone?
 
    