A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-36.ts
1classBox<T>{constructor(publicv:T){}}
2constb=newBox<string>('hi')
3console.log(binstanceofBox)
Generics
Answer & explanation
Console output
true
Why
You cannot even write Box<string> in an instanceof check, because type arguments are erased and meaningless at runtime. There is just one Box constructor, and the instance was created from it, so instanceof Box is true regardless of the type argument used at construction.