Skip to content
ExamplesOpen editor ↗

ye

→ this

Refers to the current object instance inside a class method.

ye.lebitso

Inside a method declared on a class, ye refers to the specific instance the method was called on. Use it to read and write the instance’s own fields.

Access instance fields
mofutakwalo Sediko {
  motlhophisi(r) {
    ye.r = r;
  }
}

mofutakwalo, motlhophisi