Why is it in brackets???
const getMousePosition = (x, y) => ({ x, y });
I mean this
({ x, y })
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36.
Challenge: Write Concise Object Literal Declarations Using Object Property Shorthand
Link to the challenge: