cara mengubah warna h1 dalam javascript

<h1 id="demo">Grepper</h1>
var col = document.getElementById("demo");
col.style.color="#FF0000";
Plain Pig