Problem with lesson. Maybe system glitch

Tell us what’s happening:

It seems like everything is well, and working just fine, however when web site trying to check code - it showing some error messages.

Your code so far


// Setup
var myObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh"
};
function checkObj (checkProp) {
// Only change code below this line
if (myObj.hasOwnProperty(checkProp)){
return (myObj[checkProp])
} else {
  return "Not found"
}
// Only change code above this line
}
console.log(checkObj("hello"));


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:

@4kaskad You should click Reset All Code because the function should have two parameters instead of just one. The function declaration should look like:

function checkObj(obj, checkProp) {

What about video lesson? It is slightly different.

the challenge was updated yesterday, the video is not current anymore

@4kaskad It will take some time before that video lesson is corrected.

1 Like