This is how I am giving a passenger a seat
shuttle.seats[i].name = PASSENGERS[i].name; // i is the index you know
shuttle.seats[i].house = PASSENGERS[i].house;
but it gives me the error
Uncaught TypeError: Cannot set property 'name' of null
How can I fix it?