This commit is contained in:
Ashhar Sartaj 2022-10-17 15:59:54 +00:00 committed by GitHub
commit b168e62653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
<img src="../home.svg" alt="home" />
</a>
<h2> Let's see the Output </h2>
<form oninput="x.value=parseInt(a.value) * parseInt(b.value)">
<form oninput="var n = parseInt(a.value) * parseInt(b.value); x.value= isNaN(n) ? 0 : n">
<input type="number" id="a" value="0">
* <input type="number" id="b" value="0">
= <output name="x" for="a b"></output>