Basic Data Structures: Iterate Through the Keys of an Object with a for...in Statement question

Can you describe what you want this line to do please?

JeremyLT, to loop through the online keys of user.

Ah, but a single user only has a single online key. You don’t need a loop here because you are already looping over each user. You need to check the single online key for the current user.

Was my explanation ok, or is there a part I can improve?

1 Like

Thank you for your reply, it helped me solve the challenge.

1 Like

I am glad I was able to help. Good work figuring it out!