I think this is showing the wrong code!

Tell us what’s happening:
This challenge seems to have the wrong code from looking at the solution. Here is what shows on my screen:

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

That’s it!

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36.

Challenge: Testing Objects for Properties

Link to the challenge:

You have not posted the solution. You have posted the original seed code for the challenge. You must make the necessary changes to pass the challenge tests.

Hi - please read the post I’ve written. Of course I’ve posted the seed code, I’m saying that I think it’s the wrong code for the challenge!

why do you think it is the wrong code?
it correspond to challenge description

Modify the function checkObj to test if an object passed to the function ( obj ) contains a specific property ( checkProp ). If the property is found, return that property’s value. If not, return "Not Found" .

Because this is what it looks like on the example in the video:

// Setup
var myObj = {
gift: “pony”,
pet: “kitten”,
bed: “sleigh”
};

function checkObj(checkProp) {
// Your Code Here

return “Change Me!”;
}

// Test your code by modifying these values
console.log(checkObj(“gift”));

the video shows the previous version of the challenge. the challenge was changed last week. notice how also the function definition was changed, now the function has two parameters, not just one.
I imagine it was done to have more robust tests.

if there is a discrepancy the challenge is right and the video is wrong.

Excellent. What do we do about that?

you can raise the issue in the github repository

to create a new video there should be a volunteer willing and capable to do it.
Don’t think a new video will appear istantanously as soon as asked.
Also, be ready that videos will stop at some point in the curriculum.