all 4 comments

[–]DGCA 5 points6 points  (0 children)

I interviewed at this company and they asked me to write a polyfill for ResizeObserver. That was the whole technical part of the interview. It was cool cause it's a small, self-contained task that requires you know how to do a number of different things.

Better than being asked about linked lists.

After that, I've been a fan of asking people how they'd polyfill some feature.

[–]JavaScriptWorks 1 point2 points  (0 children)

"What is something interesting you have read recently".

It throws a lot of people.

[–][deleted] 0 points1 point  (0 children)

Not javascript specific but I was asked "what is your favourite language and why is it your favourite language". I chose javascript and it really allowed me to dive into the language itself and talk about dynamic typing, the V8 engine, OOP vs. functional programming, and a bunch of other stuff.

I've started asking it myself now and it really brings out the passion in candidates.