What does it mean when an object has no method in javascript?
<p>I get the following error:</p>

<pre><code>Uncaught TypeError: Object #&lt;an Object&gt; has no method 'indexOf'
</code></pre>

<p>for this line:</p>

<pre><code>  else if(file.indexOf(".mp3") == file.length - 4 &amp;&amp; return_path === false)
</code></pre>

<p>What does this mean? Wich is the object? What is a method? And what would be am  simple example of an apllied method? I'm really new to javascript so please keep it simple.</p>
