Decorator
Babel + JSX
let lipstick8 = function(target) {
target.lips = 'pink';
}
let lipstick = function(color) {
return function(target) {
target.lips = color;
}
}
let earring = function(target){
target.hasEarring = true;
}
@earring
@lipstick('black')
class Girl {
}
console.log(`Girls has ${Girl.lips} lipstick and earring ${Girl.hasEarring}`);