display attribute javascript code example
Example 1: display none js
document.getElementById("myDIV").style.display = "none";
Example 2: javascript display block
document.getElementById("someElementId").style.display = "block";
Example 3: js display property
Check this! https://dev.to/devlorenzo/js-hide-and-show-32og