I'm failing the last test

Tell us what’s happening:
Describe your issue in detail here.

   **Your code so far**

function checkObj(checkprop, obj) {
 // Only change code below this line
 var checkprop = {
'gift': 'pony',
'pet': 'kitten',
'bed': 'sleigh',
'city' : 'seattle',
 var result = "";
 switch(checkprop, obj){
case 'gift':
result = "pony";
case 'pet':
result = "kitten";
case 'bed':
result = "sleigh";
case 'city':
result = "Seattle";
default : 
result= "Not Found";
return result ;
 // 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/94.0.4606.81 Safari/537.36

Challenge: Testing Objects for Properties

Link to the challenge:

the last test is written to make sure you are not hardcoding the output

you need to use the values passed in to the function, which are an object and a string.
I suggest you reset your code, and try again, reading carefully the instructions.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.