+ 1
In which conditions continue and break loops shows error...can anyone plz clear me
4 Respostas
+ 7
example
Are you using JavaScript? if yes:
while(true){
//code here
break;//this breaks the loop
}
//code here
+ 4
Please attach a code bit.
Usually the dont produce an error until or unless your using it outside a loop
+ 3
The break or continue is only used in loops.
It is made like that..
Because there is no use of break or continue outside a loop
0
Yeah...why does it shows outside the loop..thats my prob...i am facing the problem seriously