Is it better to use find() and end() function to chain the code?
<p>Suppose I have the HTML code as below:</p>

<pre><code>&lt;div class="body"&gt;
    &lt;div class="head"&gt;xxx&lt;/div&gt;
    &lt;div class="menu"&gt;xxx&lt;/div&gt;
    &lt;div class="content"&gt;
        &lt;div class="main"&gt;xxx&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p><strong>Script A</strong></p>

<pre><code>$('.body')
  .find('.head').show().end()
  .find('.menu').show().end()
  .find('.content .main').show().end()
</code></pre>

<p><strong>Script B</strong></p>

<pre><code>$('.body .head').show()
$('.body .menu').show()
$('.body .content .main').show()
</code></pre>

<p>I have written the script <strong>A</strong> and <strong>B</strong> to show all elements, but which is better or what is the advantage of each?</p>
