7 Simple but Tricky JavaScript Interview Questions
JavaScript Tricky Interview Questions 2023
When i was younger, I always wanted to interview people, and I thought to myself 'Ill find the best candidates " "I'll expose the frauds with some special whiteboard question".
When I finally was asked to do so, it was so soo different than what i thought it was going to be like. First of all, it's really hard to get a qualified person in front of you, especially post code bootcamp boom.
Then, you actually empathize with these people being put on the spot and freezing up, on some basic stuff which in the back of your mind you know they know.
I went from trying to catch people being bad, to now helping people get through an interview if the need presents itself. Watching someone crash and burn in an interview is extremely painful.
An interview to me now, is to gauge if they are being truthful about their background and knowledge, and establish if they are junior, intermediate or senior.
I actually give some incredibly easy white boarding questions for a front end dev, but I leave implementation very ambiguous.
Within code sandbox, and you can google anything you want, use the most modern implementations for the following questions :
-
Show me a usecase and example of array.map, array.filter, array.reduce
-
Reproduce this 3 column layout with a header and footer, handle it's responsiveness through pure CSS, do not use a framework or library
-
Connect to an outside API, and display the returned data
The scary thing, is less than 10% get to the 3rd question within 30 minutes. But that doesn't mean they aren't a good candidate. If I see people using arrow functions, chaining functions, using const/let, using the array methods in a good usecase (that they can explain), using flexbox or grid these candidates are up on some modern patterns, and are viable for further look.
Sidenote : at least 2 times we caught someone cheating and have someone else typing their code on a zoom session during covid interviews
More on reddit.com