how to make a method available to static methods in js code example Example: js static methods class Foo(){ static methodName(){ console.log("bar") }}