supasibs.github.io/Calculator-Supa
I am using a document.getElementById for a let with the target being the id of an entire span. Then I use .style.display to set its display. Similar to this
<button onclick="show()"
<span id="jsadd">
<p > Lorem ipsum sit dolor amet </p>
<!-- and so on -->
</span>
#jsadd {
display: none;
}
function show() {
let add = document.getElementById("jsadd");
add.style.display (add.style.display === "none") ? add.style.display = "block" : add.style.display = "none"
}