var setNameIdsEs6 = (id, name) => ({ id: id, name: name }); // don't forget this ()!!!
console.log(setNameIdsEs6 (4, "Kyle")); // Object {id: 4, name: "Kyle"}
var setNameIdsEs6 = (id, name) => {return { id: id, name: name }}; //see the difference?? console.log(setNameIdsEs6 (4, "john")); // Object {id: 4, name: "john"}
BOTH WORKS!!!