This repository was archived by the owner on Sep 25, 2020. It is now read-only.

Description
// -> Add 'core' to robby.parts, cranky.parts should still be empty
// -> Add 'fly' to robby.capabilities, after doing that cranky.capabilities must
// also have 'fly' without adding to it directly, so this property has to be
// shared
official solution:
robby.parts.push('core');
robby.capabilities.push('fly');
working solution:
robby.parts = ['core'];
robby.proto.capabilities.push('fly');
Please correct me if I am wrong here, but it looks like the array.push updates the values for both instances.