//Allows you to change the inner text of an HTML element.
//Example:
//<p id="greeting">I'm just a paragraph.</p>
let greetingChange = document.getElementById("greeting") //Gets the above HTML paragaph
greetingChange.textContent = "I have changed!";//Changes the text inside the paragraph from "I'm just a paragraph." to "I have changed!".
document.getElementById('divA').textContent = 'This text is different!';
// <div id="divA">This text is different!</div>
// to change the text displayed by a HTML element, you can access the textContent property
element.textContent = "some text";
// some elements like textareas and inputs have a value instead of textContent
element.value = "some text";
// you can get said element through its id
document.getElementById("element id");