md`# How to access static getter on class in a constructor`
newBar({hello:'world'})
classBarextendsFoo{
staticgetvalue(){
return'baz';
}
}
newFoo()
classFoo{
staticgetvalue(){
return'bar';
}
constructor(obj={}){
this.value=this.constructor.value;
this.data={...obj,value:this.constructor.value};
}
toString(){
return`value: ${this.value}`;
}
}
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.