title: Alert between 2 functions
body: <p>i am stuck with something between 2 functions here is my link to codepen to see what i am trying to do <a href="https://codepen.io/anon/pen/xLLrBX?editors=1010" rel="nofollow noreferrer">Demo here</a></p>
  
  <pre><code>function displayImage(elem) {
  var image = document.getElementById("canvas");
  image.src = elem.value;        
   }
    function displayImages(elem) {
   var image = document.getElementById("canvass");
   image.src = elem.value;        
   }
    function same() {
     if(displayImages(elem) === displayImage(elem)){
     alert("same");
     }
    }
  </code></pre>
  
  <p>So basically if select 1 have the same link with selected2 to alert same.</p>