JavaScript <-> Basic | Break statement

JavaScript

break

Description

break ;
Used keywords: break

Examples

JavaScript

Even one example in what situations we can use the operation break statement:
i=10;
do --i; while ( i > 0);
do {
  i++;
  if (i==5)
    break;
} while ( i <10);
.
Basic

exit do

Description

exit do
Used keywords: do exit
Note: Usable in the following locations:
loop with condition at the end

Examples

Basic

Even one example in what situations we can use the operation break statement:
i=10
do
 i=i-1
 loop while i > 0
do
  i=i+1
  if i=5 then
    exit do
end if
loop while i <10
JavaScript

break

Description

break ;
Used keywords: break

Examples

JavaScript

Even one example in what situations we can use the operation break statement:
i=10;
do --i; while ( i > 0);
do {
  i++;
  if (i==5)
    break;
} while ( i <10);
.
Basic

exit for

Description

exit for
Used keywords: exit
Note: Usable in the following locations:

Examples

Basic

Even one example in what situations we can use the operation break statement:
i=10
do
 i=i-1
 loop while i > 0
do
  i=i+1
  if i=5 then
    exit do
end if
loop while i <10
JavaScript

break

Description

break ;
Used keywords: break

Examples

JavaScript

Even one example in what situations we can use the operation break statement:
i=10;
do --i; while ( i > 0);
do {
  i++;
  if (i==5)
    break;
} while ( i <10);
.
Basic

exit while

Description

exit while
Used keywords: while exit
Note: Usable in the following locations:
loop with condition on the beginning

Examples

Basic

Even one example in what situations we can use the operation break statement:
i=10
do
 i=i-1
 loop while i > 0
do
  i=i+1
  if i=5 then
    exit do
end if
loop while i <10
Languages: en hu cz sk