<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript continue with labelled block</title>
</head>
<body>
<pre> <!-- Use pre element for work document.writeln() method -->
<script>
for(var i = 1; i < 5; i++){
inner:
for (var j = 0; j < 5; j++){
if (j == 2){
document.writeln("skipped");
continue inner;
}
document.writeln("i : " + i + ", j :" + j);
}
document.writeln();
}
</script>
</pre>
</body>
</html>