JSFiddle - React, Tailwind, and code Playground
by rootd
JavaScript
class Person {
constructor () {
this.age = null
this.name = null
this.gender = null
}
}
class Women extends Person {
constructor () {
super()
}
}
function print (data = {}) {
for(let prop in data) {
console.log(prop, data[prop])
}
}
print(new Women())