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