Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 89 - 2625 PortGPt V2.1
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 |