Reflect
basics
Reflect is special, it is different to e.g. Object
it`s of type object
it can not be instantiated (new Reflect()
)
has no call
method (as opposed to e.g. Object)
some Reflect
usages
Reflect.construct()
is like new ClassName
Reflect.get()
returns a property`s value
Reflect.has()
is like in
just as a function
Required Knowledge
- `let` declaration (Block scope)
- creation (Class)
- extends (Class)
- super in constructor (Class)
Related Katas
Reflect
Difficulty Level
BEGINNER
First Published
2 July 2015
Stats
6 tests to solve