Trait Composition Mechanism

are pure units of Behavior that can be composed to form classes or other traits. The trait Composition Mechanism is an alternative to multiple or mixin inheritance in which the composer has full control over the trait composition. It enables more reuse than single inheritance without introducing the drawbacks of multiple or mixin inheritance. page

How we can dynamically create new slots of Smalltalk/JavaScript classes? Slots that 'are' traits.