JSFiddle - React, Tailwind, and code Playground

by kmiklas

HTML

<h3>
hello world
</h3>

JavaScript

let earrings = target => {
  target.hasEarrings = false
}

let lipstick2 = (color) => {
  return target => {
    target.lips = color
  }
}

let lipstick = target => {
  target.lips = 'pink'
}

@earrings
@lipstick2('blue')
class Girl {}

console.log(`Her lips are ${Girl.lips}`)
console.log(`Does she have earrings? ${Girl.hasEarrings}`)