Challenge and solution don't match up

Tell us what’s happening:
Anybody else have a vastly different starting point for this challenge than the solution?

the challenge description has an object of obj, solution is myObj… speaking of which, the object isn’t even declared when I start… Only this:

function checkObj(obj, checkProp) {
// Only change code below this line
return “Change Me!”;
// Only change code above this line
}

Your code so far


function checkObj(obj, checkProp) {
// Only change code below this line
return "Change Me!";
// Only change code above this line
}

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36.

Challenge: Testing Objects for Properties

Link to the challenge:

the obj is passed as a parameter, the run test itself sends the object, your code is fine

This question was updated very recently. The code you are seeing when you load the challenge is correct. The solution in the hint is also correct (you can ignore the declaration of myObj in that solution, just completely forget that it is there, it is not needed). The video solution on the other hand is bad, it is outdated and doesn’t reflect the correct answer. So just ignore that.

It actually doesn’t need to be declared. The function checkObj takes two parameters. The first one is an object (obj). That is the object you will make your checks against inside the function body. When you run the tests, the tests will pass in a bunch of random objects to your function.