Why do we use parentheses here? NOT red color. The parentheses at he end of the function.
const getMousePosition = (x, y) => ({ x, y });
Why not like this:
const getMousePosition = (x, y) => { x, y };
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36
Challenge: Write Concise Object Literal Declarations Using Object Property Shorthand
Link to the challenge: