Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html xmlns = "http://www.w3.org/1999/xhtml">
- <head>
- <title>Using the continue Statement with a Label</title>
- <script type = "text/javascript">
- <!--
- nextRow: // target label of continue statement
- for ( var row = 1; row <= 5; ++row ) {
- document.writeln( "<br />" );
- for ( var column = 1; column <= 10; ++column ) {
- if ( column > row )
- continue nextRow; // next iteration of
- // labeled loop
- document.write( "* " );
- }
- }
- // -->
- </script>
- </head><body></body>
- </html>
Advertisement
RAW Paste Data
Copied
Advertisement