You should know how to modify the text or HTML that appears on the page to make your sites more interactive. This is where the HTML innerText and innerHTML attributes come in.
You can use innerHTML like this: ..
document.getElementById ("paragraph") innerHTML = "Karma career!";
This line of code defines the contents of the "paragraph"
element for "Karma career"! The getElementById () method retrieves an element by its ID.