I can’t figure out what I’m doing wrong here:
(The error is on line 4, I’m sure there are plenty more):
var RPSPlayer =
{
myHistory = new array();
rivalRock = 0;
rivalScissors = 0;
rivalPaper = 0;
itemChosen;
victorySum;
this.choose=function(item)
{
myHistory.push(item);
};
...
{more code here}
You’re right, there are plenty more. A quick correction: