Answers for "dom -js"

1

dom -js

const pokemonContainer = document.getElementById('pokemonContainer');

pokemonContainer.innerHTML += `
<div>
    <section class="all-comments"></section>
</div>
`;

const allComments = document.querySelector('.all-comments');
allComments.appendChild('Hello World');
Posted by: Guest on September-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language