<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<input type="button" onclick="fun_cntnu()" value="Test break statement">
<script>
function fun_cntnu()
{
for (i = 0; i < 10; i++)
{
if (i == 3)
{
continue; //just eleminate the following statement
}
alert(i);
}
}
</script>
</body>
</html>
No comments:
Post a Comment