Object literal properties may be computed values
a computed property x
needs to be surrounded by []
can also get a function assigned
the key may also be the result of a function call
the key can also be constructed by an expression
accessor keys can be computed names too
Required Knowledge
- basics (Arrow functions)
- `const` declaration (Block scope)
- basics (Object literal)
Related Katas
Global Object API
Object API
Object()
(as introduced in ES1)Object.is()
Object.fromEntries()
Object.fromEntries()
in depthObject.groupBy()
Object literal
Difficulty Level
ADVANCED
First Published
3 April 2015
Stats
5 tests to solve