There is no bug, and it is supposed to be that way
The challenge requires you to make a function that checks if the passed Object , the first argument/parameter , contains the passed property , the second argument/parameter.
The object in the first test has property gift with value of pony, and the second argument requires the value stored in the “gift” property, thus the return shall be “pony”.
The second test you’ve marked doesn’t have the “gift” property in the passed object so the return shall be not found
Also when putting code in the forum wrap it by three back ticks (`) on a separate lines, one before your code, and one after your code. that makes it easier for reading.
They are not contradicting
If I ask you to add two numbers, if the numbers are (2, 4) then you should anser “6”, if they are (1,4) you should anser “5”.
Just because 6!=5 doesn’t mean there is a contradiction → those were just completly different tasks.
The second argument might be identical, the first one however isn’t.
the only time the last statement marks correct is when “gift”: “pony” is not in the object.
i’ve been on this for almost 2 hours…do you have a solution?