An object literal can also contain setters
defining: a setter
- by prefixing the property with
set(and make it a function)
- must have exactly one parameter
- can be a computed property (an expression enclosed in
working with/on the setter
- you can use
deleteto remove the property (including it`s setter)
Description of all the details of a setter.
"An accessor property associates a key value with one or two accessor functions ..."
The syntax definition of how to write an (accessor) method.
Announcement of this kata on twitter.