I very rarely do JS interviews, but when I do I usually ask to implement somewhat from modern libraries in pure JS. Just one feature.
For juniors, it’d be kinda _.tail from lodash.
For middles, somewhat $(".class") from jQuery.
For seniors, nowadays it’s a web component (optionally with bindings.)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.