javascript return object in arrow function

JavaScript
const func = () => ({ foo: "bar" });
console.log(func()); // { foo: "bar" }
Source

Also in JavaScript: