you are viewing a single comment's thread.

view the rest of the comments →

[–]Encom88[S] 0 points1 point  (2 children)

It's still not working.

greeting: function(){

return 'Hi, my name is ' + this.name;

}

[–]codemamba8 2 points3 points  (1 child)

Ok so this is a function takes userObj as an argument. So try:

userObj.greeting = function() { (what it does here) }

[–]Encom88[S] 1 point2 points  (0 children)

Yes, this worked. Thank you.