When I create class in JavaScript I can define static methods outside class body. Can I actually also add definition of non-static methods?
class Class {
fun() {console.log("some method")} //how to put it outside Class body?
}
Class.static_fun = function () {
console.log("some static method");
}
var object = new Class();
Class.static_fun();
object.fun();