So this is roughly the first HTML/CSS/JavaScript thing I've done.
function update_text(element) {
element.innerHtml = "Hello Other!";
console.log("JS Ran");
}
<p onclick="update_text(this)">Hello World!</p>
Based on what I read online, when the text "Hello World!" is clicked, it should change to "Hello Other!", but it does not. The console.log statement shows up in the console so I know it is running.
Optimally, this would work several times. For example, maybe the js function sets the text to "It is <current time>".