I am working on a chat and using an array to hold the users. Here is my problem:
User1 joins and is given Index 0 in the array via push. User2 joins and is given Ind
Use delete instead of splice.
delete
splice
> a = ['1', '2', '3'] < Array [ "1", "2", "3" ] > delete a[1] < true > a < Array [ "1", undefined × 1, "3" ] > a.length < 3