Given an object, and a key, "addProperty" sets a new property on the given object with a value of true.
var myObj = {};
addProperty(myObj, 'myProperty');
console.log(myObj.myProperty); // --> true
this is my code, but it's wrong:
function addProperty(obj, key) {
// your code here
obj.key = key;
obj.values = true;
return obj;
}