break not working with label inside a function error coming label not found
<p>//break not working with label inside a function error coming label not found</p>

<pre><code>var a = 10 ;
function myfn(){
  if(a===15){
    break stoplabel;
  }
  else{
    console.log(a);
    a++;
    stoplabel:myfn();
  }
}
myfn();
</code></pre>