Currently mastering JavaScript but encountering an issue. How do I change the text to underline when clicking on "Click Me"?
<p id="demo" style="
text-decoration:none;
">Hello JavaScript!</p>
<button type="button" onclick="document.getElementById('demo').style.text-decoration='underline'">Click Me!</button>