title: Js Function Calling with another way
body: <p><br>
  I have a function that fills an array...<br>
  I want to use it like this <code>arrayname.fill("First Array");</code><br>
  But not like this <code>arrayname = fill("First Array");</code><br>
  How can I accomplish this?<br></p>
  
  <pre><code>function fill(name)
  {
      var array = [];
      for(var i = 0;i &lt; 3;i++)
      {
          array[i] = prompt(name + "\nFill it");
      }
      return array;
  }
  </code></pre>