title: Break and Continue Alternative
body: <p>I want to know if there's any alternative other then using break and continue statement. Here's my code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var i = 100;
  var out = " ";
  while (true) {
    i -= 2
  
    if (i % 6 == 0) {
      out += i + " ";
      continue;
    }
    if (i % 4 == 0) {
      out += i + " ";
      continue;
    }
    if (i % 7 == 0 &amp;&amp; i % 5 == 0) {
      break;
    }
  }
  console.log(out);</code></pre>
  </div>
  </div>
  </p>