title: Why when I am submiting an answer javascript is always displaying false?
body: <p>I have problem with displaying true/false after submiting an answer to question.</p>
  <p>I need to display true when answer is true e.g.( 14+1=15 true), but my code is always displaying false and never displays true.
  Hope you will understand my code.</p>
  <p>p.s. to display question press answer, in start it doesn't display question.</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>function myfunc() {
      //randomizer + - * /
      var symbol;
  
      var s = Math.floor(Math.random() * 5);
      if (s === 1) {
          symbol = '+';
      }
      if (s === 2) {
          symbol = '-';
      }
      if (s === 3) {
          symbol = '*';
      }
      if (s === 4) {
          symbol = '/';
      }
      //first num randomizer
      var firstnum = Math.floor(Math.random() * 100);
      //sec num randomizer
      var secnum = Math.floor(Math.random() * 100);
      document.getElementById('demo').innerHTML = firstnum + symbol + secnum;
      //answer filter
      var input = document.getElementById('input').value;
      var testanswer;
      if (s === 1) {
          testanswer = firstnum + secnum;
      }
      if (s === 2) {
          testanswer = firstnum - secnum;
      }
      if (s === 3) {
          testanswer = firstnum * secnum;
      }
      if (s === 4) {
          testanswer = firstnum / secnum;
      }
      //test answerer
      if (testanswer === input) {
          document.getElementById('atbilde').innerHTML = 'true';
      }
      else {
          document.getElementById('atbilde').innerHTML = 'false';
      }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;test&lt;/title&gt;
      &lt;script type="application/javascript" src="test.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
      &lt;p id="demo"&gt;&lt;/p&gt;
          &lt;input id="input" type="text"&gt;
          &lt;button id="mybt" type="button" onclick="myfunc()"&gt;submit&lt;/button&gt;&lt;br&gt;
          &lt;p id="atbilde"&gt;&lt;/p&gt;
      &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>