The koan is below. In my lessons, I've never seen the word "Array" just stuck into code like that. Any examples elsewhere that I can study?
it("should know properties that are functions act like methods", function ()
{
var meglomaniac = {
mastermind : "Brain",
henchman: "Pinky",
battleCry: function (noOfBrains)
{
return "They are " + this.henchman + " and the" +
Array(noOfBrains + 1).join(" " + this.mastermind);
}
};
var battleCry = meglomaniac.battleCry(4);
expect(FILL_ME_IN).toMatch(battleCry);
});
It should know properties that are functions act like methods. It is damaging your karma.
Expected 'Fill this value in' to match 'They are Pinky and the Brain Brain Brain Brain'.