title: Uncaught TypeError: undefined is not a function in javascript
body: <p>HTML:</p>
  
  <pre><code>&lt;body&gt; 
  &lt;div id="main"&gt; 
  &lt;span id="msg"&gt;Are you sure you want to proceed?&lt;/span&gt;&lt;br&gt;&lt;br&gt; 
  &lt;input type=button id="Yes" value="Yes"&gt; 
  &lt;input type=button id="No" value="No"&gt; 
  &lt;/div&gt; 
  &lt;/body&gt; 
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>function doTask(){...}
  function doNothing(){...}
  var do=function(){doTask();}
  var nothing=function(){doNothing();}
  document.getELementById("Yes").addEventListener("click",do);
  document.getELementById("No").addEventListener("click",nothing);
  </code></pre>
  
  <p>When i run the document, the console shows the Uncaught TypeError: undefined is not a function error on the document.getElementById("Yes")... line. What am i doing wrong?</p>