<!doctype html>
<head>
<title>JavaScript Label Example</title>
</head>
<body>
<script>
let count=0;
EXECUTE:
while(count<10)
{
if(count==5)
{
break EXECUTE;
}
document.write("Count is "+ count + "<br/>");
++count;
}
document.write("While loop terminated");
</script>
</body>
</html>