Ad
  • Default User Avatar

    Thanks so much for the detailed explanation! I appreciate.

  • Custom User Avatar

    for(member in data) only gives the index of the item in the array, not the item itself. This is shown by printing member (using console.log(data)).

    To reference the actual item, you must do data[member].

    To fix this, do something like the code listed below:

    for(x in data) { 
    var member = data[x]
    ...
    
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution