Break a while statement : Break : Statement JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Statement » Break »

 

Break a while statement

















<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
var x = 0;
while (x < 10)
{
    x++;
    document.write(x);
    break;
    document.write("Never seen!");
}
//  -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Statement
» Break