Inner text lets you get and set the text of selected element.
#javascript
// Get the inner text value of the selected element and assign it to a variablevarel=document.getElementById("element").innerText;// Set the inner text valuedocument.getElementById("another-element").innerText="New text";