Need help in code, not able to see createElement in the output
Asked by Anand Kumar about 8 months ago
0
access to bootplay ground - https://codedamn.com/playground/7nhnh09piyXJmQcMcI1TD
JS code below const buttons = document.querySelector('#btn');
buttons.onClick = () => { const h3 = document.createElement('h1'); h1.innerText = "This is magic";
// buttons.prepend(h1) // buttons.appendChild(h1) document.body.appendChild(h1) }
0 Answers
This Question was closed by the author.Create Free Account