title: How to execute somethnig `finally` in Javascript swich-case statement?
body: <p>In javascript <code>switch</code> statements, I would like to execute some function if any one of the <code>case</code> is satisified:</p>
  
  <pre><code>switch (myVar){
    case 0:
      do_something_0();
      break;
    case 1:
      do_something_1();
      break;
    // I want to execute myFunc() if myVar === 1 or myVar === 2
  }
  </code></pre>
  
  <p>I came up with the idea of having auxiliary variable <code>haveMatched</code>, like this.</p>
  
  <pre><code>var haveMatched=false;
  switch (myVar){
    case 0:
      do_something_0();
      haveMatched=true;
      break;
    case 1:
      do_something_1();
      haveMatched=true;
      break;
  }
  if (haveMatched){
    do_finally();
  }
  </code></pre>
  
  <p>I think there might be better way of achieving this (for example, I would've tried the similar way if I hadn't known about the <code>default:</code> keyword). Am I doing it right, or am I missing something?</p>