![]() |
Break and Continue Statements![]() ![]() ![]() ![]() ![]()
The Break statement is used to terminate a loop and transfer control to the statement following the loop. The break statement is usually used along with a conditional statement. The break statement consists of the break key word A may also have an optional label. The following example illustrates the use of the break statement.
<html><head> <title>Loops</title> </helad> <body> The Continue statement The continue statement affects the execution of the for,while and do-while loops in which it occurs Unlike the break statement it does not terminate the loop, rather it terminates the execution of the loop's current iteration. The following example illustrates the use of the continue statement: <html> <head> <title>Loops</title> </helad> <body>
|
|
Domain NamesJAVASCRIPT Types of Variables Arrays Data Type Conversion Arithmetic Operators Logical and Comparison Operators Assignment Operators Ternary Operators Operator Precedence Assignment Statements If StatementsSwitch Statement Function Call Statement Try, Catch and Throw Statements The For Loop Java While Loop The Do While Loop Break and Continue Statements
String Methods Array Methods Objects, Methods and Properties The Boolean Object The Date Object The Global Object The Math Object
The Number Object Color Constants Hierarchy of Browser Objects Window Object Document Object History Object Navigator Object Buttons Check Box Radio Buttons Text FieldsWorking with Image Maps Creating Simple Animation Hidden Fields Working with Style Sheets An Example of HTML Graphics Replacement The <SPAN> Tag Positioning of HTML Content The <LAYER> TagWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |