Friday, October 17, 2014

Write A program to use of Break Statement using Javascript .


Write A program to use of Break Statement using Javascript .
Code : break.html

<html>
<head>
<title> break statment</title>
<script type="text/javascript">
var i;
</script>
</head>
<body>
<script type="text/javascript">
for(i=4;i<9;i++)
{
if(i==7)
{
break;
}
document.write(i);
document.write("<br>");
}
</script>
</body></html>

No comments: