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

COMPUTER SOFTWARE APPLICATION - CITS





























           TASK 10 : Using while loop
           1  Open the text editor
           2  Write the following codes
              <html >

              <head>
              <title> while loop </title>
              </head>
              <body>
              <script>
              let count = 0;

              while (count < 5)
              {
              console.log(“Count:”, count);
              count++;

              }
              </script>
              </body>
              </html>

























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