Fill the blank
// class check for a Date
if (d ____ Date) {
fmt(d);
}
Answer: instanceof
instanceof walks the prototype chain to test the constructor.
Play Problem Solving ▸
// class check for a Date
if (d ____ Date) {
fmt(d);
}
Answer: instanceof