appendChild is a JavaScript method that adds a node to the end of the list of children of a specified parent node.
Syntax:
parentElement.appendChild(childElement)
Example:
// Create a new paragraph element
const newParagraph = document.createElement('p');
newParagraph.textContent = 'This is a new paragraph';
// Get the parent element
const container = document.getElementById('container');
// Append the new paragraph to the container
container.appendChild(newParagraph);
Perfect! 👍 — that's exactly the part causing the extra Answer buttons. Let's fix it easily. 💡