Fresh Uber interview experience…
Two questions in total:
-
Difference between
var
andlet
, the one aboutsetTimeout
printing the result, testing block scope and lexical scope, frontend should all know. -
Task runner, follow-up question was about adding priority, I didn’t write it, just mentioned it, also how to optimize. I said heap or priority queue, asked about time complexity like this.
Feels like it’s been a while since interviewing, even stuttering when speaking… Seeking some insights.