title: How to appear an image after the user entered the correct answer?
body: <p>So im writing a web page as a small birthday gift for my friend, but I have never learned javascript...
  What I want is that after he entered the correct answer, an image will appear as a reward.</p>
  
  <pre><code>while(1)
  {
      var pro1=prompt("question");
  
      if (pro1=="answer")
        ***appear an image;*** //this is the part of the code I don't know how to write
  
      alert("you answer is wrong");
  </code></pre>
  
  <p>Sorry...I know this is kind of basic, if you are willing to help me, that would be a big favor.</p>