How do I write something in html then be able to change it in java script? Also, how do I do a random choice from a list of objects? Finally, how do i die imgs/ buttons in html then make them appear when a button is clicked?
Each HTML element has certain functions and fields that you can tinker with. For example, let's say you had the following HTML:
<p id="myPara">This is a paragraph</p>
You can then change the contents by editing the <p> tag's innerText variable:
let myPara = document.getElementById("myPara"); // You should only call this once at the top of your JS file myPara.innerText = "This is the same paragraph, but with new text!";
As for making things appear/disappear, you can set the element's style's display property.
myPara.style.display = "none"; // Makes the paragraph disappear myPara.style.display = "block"; // Makes the paragraph reappear
Picking from a list of objects requires knowledge of arrays. Once you understand how they work, you can then access a random element by calling Math.random() and getting that index.