Everything is good for me, but the result always appears Nan
this is the code
js
function myFunction() {
var x = document.getElementById("myInput").value;
var str1 = document.getElementById("demo");
var str2 = document.getElementById("demo2");
var str3 = document.getElementById("demo3");
var str4 = x * str2;
document.getElementById("demo").innerHTML = str4 * str3;
Html
<p id="demo"></p>
<br>
<p id="demo2">1</p>
<br>
<p id="demo3">1</p>
outpot: Nan