Right, I’ve done that. What’s next please?
What do you see?
You asked
Looking at the variables helps answer this question
SyntaxError: unknown: ‘return’ outside of function. (8:2)
6 |
7 | checkObj({gift: “pony”, pet: “kitten”, bed: “sleigh”}, “gift”)
8 | return “Not Found”;
| ^
9 | // Only change code above this line
10 | }
Where do return statements belong?
You made a syntax error mixing together the code I showed and your previous code.
I’m sorry fellas, I might need to move on from this and come back to it another day as it’s the only thing that I can’t get my head around at the moment.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.