class Example{ c = 3; constructor(a){ this.a = a; }; sst(){ return "ss"; }; } Example.prototype.b = 5; let ss = new Example(2); console.log(ss.sst());