How Testing Objects for Properties

How Testing Objects for Properties
0

#1

Guys please you help out here

Your code so far

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

function checkObj(checkProp) {
  checkObj("gift");
  if (myObj.hasOwnProperty(checkProp)){
return myObj[checkProp];}

else {return "Not Found"}
}

// Test your code by modifying these values
checkObj("gift");

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:58.0) Gecko/20100101 Firefox/58.0.

Link to the challenge:


#2

You did not include an answer to “Tell us what’s happening”. What have you tried? What isn’t working as expected? What tests are failing? What don’t you understand? What do you understand?


#3

Im stucked here for days and i keep reseting this and i don’t really understand what answer they require


#4

If you’re having trouble understanding the instructions, you can also look at the test cases to see what the expected results are.


#5

Okay…
Probably I think I don’t understand…


#6

Specifically what don’t you understand? What part doesn’t make sense.