$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #199

Fill in the blank

// inherit from a base class
class Admin ____ User {
  constructor(n) { super(n); }
}

Answer: extends (also accepted: extends, extends())

extends sets up the prototype chain to the base class.
Play Problem Solving ▸