h5bp / Front-end-Developer-Interview-Questions

A list of helpful front-end related questions you can use to interview potential candidates, test yourself or completely ignore.

Home Page:https://h5bp.org/Front-end-Developer-Interview-Questions/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add question on jQuery animation queues?

arthurvr opened this issue · comments

Seems like we don't have questions on jQuery.fn.queue() & friends. I'd like to have some in, it's a really powerful feature which is currently kinda underrated. I'd suggest these questions:

  • What does .queue() do and why would you use it? What's .dequeue()?
  • What queue is the default one?

I've been hesitant to add more jQuery topics since we've trended away from adding any other framework or library-specific questions. The reasoning here is that all a library really does is abstract away functionality, techniques and best practices that can always be understood, discussed or applied in a broader context.

To bring that sentiment full-circle, jQuery's .queue/.dequeue implementation isn't unique. That said, if I wanted to know whether someone understood synchronous vs. asynchronous processes then I might instead ask them something like, How could/would you queue up a number of functions to run synchronously? I may even ask them to write an implementation from scratch (time permitting).

Of course, some people may respond to that question by referencing jQuery's API and some may not. Either way, I'm still vetting that they have the knowledge and understanding I'm looking for on that topic (which isn't framework or library specific).

I'm going to close this for now unless you want to change the issue to be more of a general sync/async or chaining question.