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