Please help, guys : <p>Its app / site like brain trainer </p>

<pre><code>  &lt;body style="text-align: center;"&gt;
    &lt;h3 id="num1"&gt;&lt;/h3&gt;

    &lt;h3 id="num2"&gt;&lt;/h3&gt;
    &lt;input type="text" id="ans" /&gt;
    &lt;button id="myBtn" onclick="clickFunction()"&gt;Button&lt;/button&gt;
    &lt;p id="ind"&gt;&lt;/p&gt;
    &lt;script&gt;
        var i = 0;
        var number1 = Math.floor(Math.random() * 20);
        var number2 = Math.floor(Math.random() * 20);
        var result = number1 * number2;
        document.getElementById("num1").innerHTML = number1;
        document.getElementById("num2").innerHTML = number2;
        let answer = document.getElementById("ans");
        if (result == answer) {
          document.getElementById("ind").innerHTML =
            "Indicator : Right " + i++ + "times.";
        } else {
          document.getElementById("ind").innerHTML =
            "Indicator : Right " + i-- + " times.";
        }
  answer.addEventListener("keyup", function(event) {
  if (event.keyCode === 13) {
   event.preventDefault();
   document.getElementById("myBtn").click();
  }
});
    &lt;/script&gt;
</code></pre>

<p>Please help, I need to add the button which submit the text in input and check,if it right.</p>
