Write a this statement

Tell us what’s happening:
I have no idea how to get my test to pass on exercise 2…This is what I wrote: userObj.greeting = 'Hi, my name is ’ + this.name;
am I wrong???

Your code so far
function exerciseTwo(userObj){
// Exercise Two: You will be given an object called ‘userObj’
// userObject will already have a key on it called ‘name’
// Add a method to userObj, called ‘greeting’.
// Using the keyword ‘this’, the greeting method should return the following string:
// ‘Hi, my name is ’ and the users name.
// eg: If userObj has a name: ‘Dan’, greeting should return: Hi, my name is Dan’
// NOTE: DO NOT create a new object.
// NOTE: DO NOT create a key called name the key is already on the object.
userObj.greeting = 'Hi, my name is ’ + this.name;

// Please write all of your code on the lines above.
return userObj;
}
Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0.

Link to the challenge:

I would say you are not using this - but can you provide the link to the challenge?

The comments are a bit ambiguous.

But greeting is supposed to be a method. You should not be assigning a string to it.

userObj.greeting()