if read code

<html>
   <head>
     <script type = “text/javascript”>
         <!–
         var a=1, b=7, c=9;

  if ( a < c )
  {
  document.writeln(“Junk” + a + “<br>”);
  if (a <3 )
         {  
           if ( b > 2)
   {
             document.writeln(“Loop” + b + “<br>”);
             if ( b == 3)
             {
             document.writeln(“go” + b + “<br>”);
             b=b-2;
             }
             a=a+5;
           }
           }
           if (a < 5)
           document.writeln(“Skip” + a + “<br>”);
           if (a ==6)
           {
           b = b – 1;
           if ( a > 5)
           document.writeln(“Small” + b + “<br>”);
           }
           document.writeln(“Again” + a + “<br>”);
           a = a + 2
         }
     </script>
   </head>   
   </html>

Link to run

Another example

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>