change text of p js code example
Example 1: change text of element js
document.getElementById("p1").innerHTML = "New text!";
Example 2: javascript element edit value
// example:
document.querySelector(`.guess`).value = 42;
// syntax:
// <element-select>.value = <new-value>;