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

What goes in the blank?

// a method callable without an instance
class MathUtil {
  ____ square(n) { return n * n; }
}

Answer: static (also accepted: static, static())

static puts the method on the class itself.
Play Problem Solving ▸