title: JavaScript endsWith function not working
body: <p>I have a web application. In one of the pages, I go all over the HTML element IDs wether one of them ends with a specified string or not. Every JS functions work on the page but "endsWith" function doesn't work. I really didn't understand the matter. Can anyone help?</p>
  
  <pre><code>var str = "To be, or not to be, that is the question.";
  alert(str.endsWith("question."));
  </code></pre>
  
  <p>The above simple JS code doesn't work at all?</p>