5

Interviewer: What is typeof typeof []
Interviewee: I think it's Array

Interviewer: Why?
Interviewee: Because first one would return Array, so second one will also return Array

:/

Comments
  • 2
    At least they got half of it correct, right? :P
  • 0
    What is the answer?
  • 2
    @MaxMayo answer is 42
  • 0
    @MaxMayo I think its string or something because typeof returns the type as a string im pretty sure
  • 1
    Probably string or object is my bet, depending on what type of return.

    I don't think you need to worry though, I'm sure they are more interested in hearing how you think about it rather than what you say is actually correct. Noone knows every part of a programming language by heart :)
Add Comment