Skip to content

Instantly share code, notes, and snippets.

@hdragomir
Created October 10, 2012 11:54

Revisions

  1. hdragomir created this gist Oct 10, 2012.
    12 changes: 12 additions & 0 deletions switch-default.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    switch (num) {
    case 1:
    'do your stuff';
    break;
    default:
    case 2:
    'do other stuff';
    break;
    case 3:
    'more stuff';
    break;
    }