Hey, I currently am having trouble trying to get this to work. Here\'s a sample code of what I am trying. A lot has been taken out, but this should still contain the problem. I
I would do
player = [];
instead of
player = new array();
As a sanity check, try doing:
document.write("Name: " + player[0].name);
I tried this and worked:
player = [{}];
instead of:
player = new Array();
You have a typo in your code.
Change
player = new array();
to
player = new Array();
Well, you've got an error. It's not array
but Array
.