Home

Conditional Statement in JavaScript

<html> <body> <h3>Conditional using JavaScript child, teen, young,adult, old ,</h3> <p>Enter age: <input type=&quot;number&quot; id=&quot;age&quot;></p> <input type=&quot;button”&quot;value=&quot;CLICK HERE&quot; onclick=”&quot;check()&quot;/> <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