クラス自体の中で静的関数を呼び出すにはどうすればよいですか? これの代わりに self キーワードを試してみましたが、それでもエラーが発生します。
class Test {
static staticFunction() {
console.log('Inside static function.');
}
regularFunction() {
this.staticFunction();
}
}
let test = new Test();
test.regularFunction();