Last active 2 years ago

  1. 2 years ago
    Sun 25 Sep 2016 05:32:39 PM CEST
    a4poster started the conversation Create an Object within Array..

    I want to create an array for each member in our football team - so to start with if it was in JQM it would start with -

    players = new Aarray(11);

    Then from here I wish to create an object for each Player where I can add there age, position, goals etc again in JQM I would use something like this:

    players[0] = new Object();
    players[0].age = 21;
    players[0].position = "GK";
    players[0].goals = 0;

    But I can't fathom how to do it - Can anyone help a new convert?

  2. Sun 25 Sep 2016 05:30:33 PM CEST
    a4poster joined the forum.