I want to show and hide the text in Vanilla JS and unfortunately, all I can do is to hide the text. I don't know how to show the text again.
<button id="button">my button</button>
<div>
<p id="text">Hello</p>
</div>
this is the js
const z = document.getElementById('text');
const y = document.getElementById('button');
y.onclick = () => {
z.style.display = 'none';
};