Basic JavaScript: Testing Objects for PropBasic JavaScript: Testing Objects for Prop

Tell us what’s happening:
it is putting this up and saying I have added something below the line where I am not supposed to write but I haven’t!
SyntaxError: unknown: Unexpected token (9:0)

Your code so far

function checkObj(obj, checkProp) {
// Only change code below this line
if (obj.hasOwnProperty(checkProp)) {
  return obj[checkProp];
} else {
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.163 Safari/537.36.

Challenge: Testing Objects for Properties

Link to the challenge:

Pay attention to your syntax, you haven’t closed the function definition. also read the question again, you need to change the second return statement.

your code its right. Seems you have a typo in the return statement. You must read as the what the instructions says, also you need to declare your object
Make sure you get the full code for review.

syntax error:

you have an else statement and a function but only one closing parenthesis to close both. One is missing.