Conditional Statement in JavaScript
<html> <body> <h3>Conditional using JavaScript child, teen, young,adult, old ,</h3> <p>Enter age: <input type="number" id="age"></p> <input type="button”"value="CLICK HERE" onclick=”"check()"/> <script> function check() { var ag=document.getElementById(‘age’).value; ag=parseInt(ag); if(Number.isInteger(ag)) { if (ag<=13) …
Conditional Statement in JavaScript Read More