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

Fill the blank

// class check for a Date
if (d ____ Date) {
  fmt(d);
}

Answer: instanceof (also accepted: instanceof, instanceof())

instanceof walks the prototype chain to test the constructor.
Play Problem Solving ▸