Understanding javascript function calls in format of myFunc(arg).something()
<p>I'm trying to understand the format of the Javascript functions that jQuery, among other people, use.</p>

<p>For instance <code>jQuery(arg).hide()</code> or <code>$("#obj").hide</code></p>

<p>I'd like to write similar format functions but I don't understand how.</p>

<p>I know how to write</p>

<pre><code>function myFunc(args) {
}
</code></pre>

<p>but I don't understand the second part ie the .hide()
is that a function within a function?</p>

<p>thanks for any help</p>
