jQuery Deferred advantages?
<pre><code> $.ajax("example.php").done(function ()
 {
     alert(...);
 }).fail(function ()
 {
     alert(...);
 }).always(function ()
 {
      alert(...);
 });
</code></pre>

<p>vs</p>

<pre><code>  $.ajax("example.php",

      success: function ()
      {
          alert('');
      },
      error: function ()
      {
          alert('');
      },
      complete: function ()
      {
          alert('');
      }
  );
</code></pre>

<p>Sorry , I <strong>can't</strong> see any advantages </p>

<p>Can you please explain ?</p>

<p>Or maybe can you <strong>give me example</strong> of the former which cant be accomplished by the latter...?</p>
