JS JSON Data tidak ditentukan

// Wrong
const objMaker = () => { answer: 42 };

// Right
const objMaker = () => ({ answer: 42 });
Puzzled Puffin