title: How to check for a multiplication sign in JavaScript?
body: <p>I'm working on a calculator program. I'd like to display the multiplication sign in HTML but also be able to detect in JavaScript whether or not the multiplication sign was clicked, so it doesn't get added to the display. This applies to other symbols. I tried using the UNICODE value, but if you press (for example):</p>
  
  <p>1, </p>
  
  <p>then 2, </p>
  
  <p>then the multiplication sign, </p>
  
  <p>the multiplication sign shows up in the display (which I don't want). Any ideas?</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>const myDiv = document.querySelector('#display');
  const myButtons = document.querySelectorAll('button');
  myButtons.forEach((button) =&gt; {
      button.addEventListener('click', () =&gt; {
          if(button.textContent == 0x000D7) {
              // call on some operator function
          } else {
              myDiv.textContent += button.textContent;
          }
      });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id=display&gt;&lt;/div&gt;
  &lt;button&gt;1&lt;/button&gt;
  &lt;button&gt;2&lt;/button&gt;
  &lt;button&gt;&amp;times;&lt;/button&gt;
  
  
  
      </code></pre>
  </div>
  </div>
  </p>