<!-- button line has the error message "tag start is not closed"single quotes fixes the problem,which is confusing since double quotes is supposed to work on everything -->
<body>
<h2> what can javascript do?</h2>
<p id="demo">javascript can hide html elemnts.</p>
<button type="button" onclick="document.getElementById('demo').style.display=" none "">click me!</button>
</body>