How to show/hide elements using javascript equivalent to jQuery.show() and hide() DOM?

You can show or hide specific elements with native javascript without using jQuery.

<div class="mydiv">Content Goes here</div>