Tell us what’s happening:
Your code so far
const createPerson = (name, age, gender) => ({
// Only change code below this line
name,
age,
gender
});
// Only change code above this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 Edg/87.0.664.75.
Challenge: Write Concise Object Literal Declarations Using Object Property Shorthand
Link to the challenge:
Hi @eric92rodriguez!
Functions need to return something.
Add a return to the answer and don’t forget your curly braces.
Note the curly braces in this FCC sample
const getMousePosition = (x, y) => ({ x, y });
1 Like
system
Closed
3
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.