Code is wrong, still passes, how? --- Check if an Object has a Property
while checks whether some condition is true. What you’ve got is essentially the same as using
But I checked for Alan only and not the other users, how is this test passing then?