Can JavaScript classes/objects have constructors? How are they created?
Yes, you can define a constructor inside a class declaration like this:
class Rectangle { constructor(height, width) { this.height = height; this.width = width; } }