Which method should we use to execute and handle some code and why?
<p>I would like to know what is hide under some specifics ways to execute some code.</p>

<p>I have 3 different ways to do in my mind, but i really don't know which is better on what kind of situation and why. 
I just choose the <code>Case 2</code> method most of the time for a syntaxical preference, but i am more and more wondering what are the advantages and disadvantages of each method.</p>

<p>Case 1:</p>

<pre><code>var response = Func();
//Handle response...
</code></pre>

<p>Case 2:</p>

<pre><code>Func(response){
  //Handle response...
};
</code></pre>

<p>Case 3:</p>

<pre><code>Func({
  case_x: function(opt){
    //Handle an example case...
  }
});
</code></pre>

<p>Thanks for the explanations i am very curious about that !</p>
