How can I refer to a class from a static method without using the class name itself in JavaScript (similar to PHP\'s self and self::method_name)?<
self
self::method_name
If all of those methods are static then you can use this.
this
class FooBar { static foo() { return 'foo'; } static bar() { return 'bar'; } static foobar() { return this.foo() + this.bar(); } }