how to set custom length property for javascript? Is it like this?
class coord { constructor(x, y) { } get length() { return //something