Tech Challenge
2026-10-26
🔷
Daily Tech Challenge
TypeScript
medium
Question 1 of 5
`Cat` below is declared only as an interface. What does the compiler do with the `instanceof` check?
Example
interface Cat {
meow(): void;
}
function speak(pet: unknown) {
if (pet instanceof Cat) {
pet.meow();
}
}Monday, October 26, 2026 · A new challenge drops every day