Continuing the discussion from freeCodeCamp Challenge Guide: Check if an Object has a Property
Here is another solution that should work but does not pass the tests.
function isEveryoneHere(userObj) {
if(userObj.hasOwnProperty("Alan"&&"Jeff"&&"Sarah"&&"Ryan")){
return true
}else{
return false
}
}
console.log(isEveryoneHere(users));