 <pre><code>var happyMood = document.getElementById("happy"); var sadMood = document.getElementById("sad"); happyMood.onclick = function () { var mainHeading = document.getElementById("heading"); mainHeading.innerHTML = "You have selected "; }; sadMood.onclick = function () { var mainHeading = document.getElementById("heading"); mainHeading.innerHTML = "You have selected " + sadMood; }; </code></pre>