Knowledge Walls
Ammu
Hyderabad, Andhra Pradesh, India
Passcode:
Break and continue in Examples of Javascript 1
887 Views
break
<!DOCTYPE html>
    <html lang="en-US">
        <head>
            <meta charset="UTF-8">
            <title>string</title>
        </head>
        <body>
            
            <script>
                var a=10;
                while(a<15)
                    {
                        if(a == 12 ){break;}
                          document.write("value="+a+"<br>");
                        a++; 
                    }
            </script>
            
        </body>
    </html>
continue
<!DOCTYPE html>
    <html lang="en-US">
        <head>
            <meta charset="UTF-8">
            <title>string</title>
        </head>
        <body>
             
            <script>
                for(a=10;a<15;a++)
                    {
                         document.write("value="+a+"<br>");
                        if(a == 13 )
                          continue;
                         
                    }
            </script>
             
        </body>
    </html>
Next Topics
Next lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Previous Topics
Previous lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Best Lessons of "Javascript 1"
Top lessons which are viewed more times.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details