So I'm attempting to build a completely dynamic calender web-app, simply for some practice, but I'm struggling to dynamically replace this H1 elements text.
I've applied all months to the creatively named "month" variable, and is outputting correctly, but I can't seem to replace my placeholder
<h1 id="replace">Month</h1>
using
    function title(){
    var myReplace = document.getElementById("replace");
    myReplace.innerHTML = month;
    }
 
    