title: What the array().join() does in the following code?
body: <pre><code> var object = {
        mastermind : "Brain",
        henchman: "Pinky",
        battleCry: function (noOfBrains) {
          return "They are " + this.henchman + " and the" +
                   Array(noOfBrains + 1).join(" " + this.mastermind);
    }
  };
  
  var battleCry = object.battleCry(4);
  </code></pre>
  
  <p>--</p>
  
  <p>Can you explain why <strong>array().join()</strong> <em>return</em>: </p>
  
  <ul>
  <li><em>Correct</em>: "They are Pinky and the Brain Brain Brain Brain"</li>
  <li><em>Incorrect</em>: "They are Pinky and the 5 Brain" </li>
  </ul>