title: how to onclick change image between 3 images
body: <p>Hi I am new to javascript and I want to change the image when I click the image. I can do this with 2 images, how do I do this with 3 images?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function change() {
    var image = document.getElementById('changeimg');
    console.log(image)
    switch (image) {
      case "image2":
        document.getElementById('changeimg').src = "css3.png";
        break;
      default:
      case "image3":
        document.getElementById('changeimg').src = "javascript.png";
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h1 align="center"&gt;Change Image&lt;/h1&gt;
  &lt;br&gt;
  &lt;div class="container" align="center"&gt;
    &lt;img src="html5.png" style="height: 500px; width: 500px" id="changeimg" onclick="change()"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>