You use classes to make new objects which share similar construction. What if you want some of those object properties to be objects as well? For example:
const obj={
prop: 'string',
obj: { prop: 5 }
}
Can you make a class which creates similar objects while passing it a string and number value?