Iterate Through the Keys of an Object with a for...in Statement - unsure of code + the logic behind a for in loop

What you said is almost correct, you just need to use obj[user].online, without dot before the square bracket

haha yes sorry typo on my side

thanks so much for all the help! i learnt alot about objects just from this challenge

1 Like