ES6 - Write Concise Object Literal Declarations Using Object Property Shorthand

Tell us what’s happening:
Describe your issue in detail here.
I think the format of this question needs clearer editing when the block bracket should be below the code below/above indicators.

  **Your code so far**
const createPerson = (name, age, gender) => ({
// Only change code below this line
  name,
  age,
  gender
// Only change code above this line
});

console.log(createPerson("Zodiac Hasbro", 56, "male"))
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: ES6 - Write Concise Object Literal Declarations Using Object Property Shorthand

Link to the challenge:

What do you mean by ‘block bracket’?

There are tow different but equivalent syntax that can be used to solve this problem.

this bracket { }
it was right above the comment where to code and below.
Kinda discouraging me to put the curve bracket before it.

And it is not required that you do so

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.