make a toggle in javascript code example
Example: toggle element javascript
document.querySelector("#test").hidden = true;
document.querySelector("#test").hidden = false;
document.querySelector("#test").hidden = true;
document.querySelector("#test").hidden = false;