When predefining class properties in a constructor is it more appropriate to initialize the property with null
or undefined
?
class PostViewer {
constructor() {
this.frontend = true
this.editor = undefined // or should use `null`?
this.key = undefined // or should use `null`?
this.container = undefined // or should use `null`?
}
}