how to generate a static function without ‘class{}’?

how do I generate something like:

function generator() {
static funct(){}
}

I think I’m wrong, but from what I understand the class {} method is built on top of function(){}, so it should have the same method. The point is that static methods don’t have a .prototype, and I’d like to know how they’re created via class {}