03. Class Methods
class Foo {
constructor(prop) {
this.prop = prop;
}
static staticMethod() {
return "classy";
}
prototypeMethod() {
return "prototypical";
}
}
let foo = new Foo(123);Class Constructor
Static Functions
Last updated