by randomdata · 3y ago · 0 comments
Given:
class Foo {
constructor(x) {
this.x = x
}
bar() {
return this.x
}
}
maybe it becomes: object Foo(x) {
this.x = x
}
function Foo.bar() {
return this.x
}No comments yet.