Page 154 - Computer Software Application TP - Volume 1
P. 154

COMPUTER SOFTWARE APPLICATION - CITS




           3  Save the program as a .html file
           4  Open the html file with a web browser
           5  Go to the browsers console tab and verify the output.



           TASK 11 : Using do-while loop

           1  Open the text editor
           2  Write the following codes
              <html >
              <head>
              <title> do-while </title>

              </head>
              <body>
              <script>
              let k = 0;

              do
              {
              console.log(“Value of k:”, k);
              k++;
              } while (k < 5);
              </script>

              </body>
              </html>
           3  Save the program as a .html file
           4  Open the html file with a web browser

           5  Go to the browsers console tab and verify the output.

































                                                           139
 CITS : IT & ITES - Computer Software Application - Exercise 39  CITS : IT & ITES - Computer Software Application - Exercise 39
   149   150   151   152   153   154   155   156   157   158   159