코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>JavaScript Etc Control Statement</title> </head> <body> <h1>break 문</h1> <script> gugudan: for (var i = 2; i <= 9; i++) { dan: for (var j = 1; j <= 9; j++) { if (i > 3) break gugudan; document.write(i + " * " + j + " = " + (i*j) + "<br>"); } } </script> </body> </html>