similar construction in the js

is it possible to make a similar construction in the js?

new void Update()
{
base.Update();
 
}

:face_with_spiral_eyes:

I think in JavaScript, it’s “super” instead of “base”. Also, you should avoid “new” if possible. Not sure if it matters for how Unity calls Update though.

//base class
protected virtual function Update()
{
}

//subclass
protected override function Update()
{
	super.Update();
}

(I’m not sure how exactly JavaScript supports protected virtual/override, if someone could comment/fix the syntax, that’d be great)