Even or Odd using JavaScript
USING INPUT BOX <html> Number: <input type="number" id="number"> <br><br> Result: <input id="result" disabled> <br><br> <button onclick="checkEvenOdd()">Check Even/Odd</button> <script> function checkEvenOdd() { let number = parseInt(document.getElementById("number").value); if (number % 2 === …
Even or Odd using JavaScript Read More