title: I have a button I need to turn color on fist click and change back to original color on second click
body: <p>I can get the button change color on first click but not on second click. Not sure how to execute. Console log to true as expected.</p>
  
  <pre><code>        var clicked = true,
  
              button = document.getElementById("buttonProps");
  
          button.addEventListener("click", function () {
  
              if (clicked) {
                  this.style.backgroundColor = "skyblue";
              } else {
  
                  this.style.backgroundColor = "lightgray";
              }
  
          });
          console.log(clicked)
  </code></pre>