In the JavaScript code, we will add an onclick event to a button that will run a function we will create.
var displayStatus = document.getElementById("someDiv")
We can use JavaScript to show and hide a div using one button by combing the getElementById() method, the display property, and an if else conditional statement.