function abs(name, values) { obj = {} obj[name] = values return obj } abs('good', 100) abs('bad', 10) abs('normal', 50) alert(obj.good) alert(obj.bad) alert(obj.normal)
The property is replaced each time it is called, and the object must have 3 different properties.