Page 89 - PortGPT_V2.1_C8_Flipbook
P. 89

document.write(name, " is not selected for college");

                       }
                     }
                     else
                     {
                       document.write(name, " is too young for college");

                     }
                 </SCRIPT>
                 </BODY>

                 </HTML>
                 On running the program given on previous page, we get the following output:
































































                                                                                 Conditional Statements in JavaScript  87
   84   85   86   87   88   89   90   91   92   93   94