17. Break Loop: Easy to break loop condition just see below coding .
< script type = " text / javascript " >
var i= 0;
for ( i= 0 ; i < = 10 ; i++ )
{
if (i == 3)
{
break;
}
document.write( i);
}
< / script >
Output:
012
No comments:
Post a Comment