if (users.hasOwnProperty('Alan'+'Jeff'+'Sarah'+'Ryan'== true)) {
So, you are concatenating those strings to be “AlanJeffSarahRyan” and asking if that is equal to true. Since it is not, you are asking:
if (users.hasOwnProperty(false) {
There is not property “false” so it will always evaluate to false.
If you provided a link to the original challenge, we could give clearer advice, but a few things.
First, you can’t check multiple property names like that.
Secondly, the “== true” would have to be outside the method parameter list. (Actually, the “== true” is unnecessary because of how if will evaluate as truthy or falsy whatever it is given - but that’s OK.)
To the best of my knowledge, hasOwnProperty only accepts one parameter, so, you are sending 4 params and only the first one is getting read (“Alan”) and the others are getting ignored. I think you are misunderstanding this method - here are the docs.
I think you’re going to have to call that method 4 times. I can’t think off the top of my head a way to do it with just one call.