Page 85 - PortGPT_V2.1_C8_Flipbook
P. 85

On running the above program, we get the following output:



































































                  Program 4: To display one of the two alternate messages.


                 <!DOCTYPE HTML>
                 <HTML>
                 <HEAD>

                     <TITLE> if-else statement </TITLE>
                 </HEAD>
                 <BODY>


                                                                                 Conditional Statements in JavaScript  83
   80   81   82   83   84   85   86   87   88   89   90