A list of common questions, along with answers, and some code-snippets that I am putting together for myself while preparing for JavaScript interviews. Many of these questions are what I have actually faced in real interview. It is by no means comprehensive, and the answers are relatively short ( and for each of the concepts, there are probably better and/or more in depth coverage in the web), but I see this repo as reference tool, so I can continue a technical talk with the interviewer for two to three hours.
There are many fantastic resources for JavaScript interview questions, videos, and blog posts on the web and that I have drawn from (the below is one such small list. I will cite as many as I can throughout so that additional information on each list item can be easily found.
A curated list of general resources for JavaScript Interviews
https://www.thatjsdude.com/interview/js1.html - JS: Interview Algorithm Part-1
https://www.thatjsdude.com/interview/js2.html - JS: Basics and Tricky Questions Part-2: intermediate
https://www.thatjsdude.com/interview/dom.html - JS: Interview Questions Part-3
https://medium.freecodecamp.org/3-questions-to-watch-out-for-in-a-javascript-interview-725012834ccb - 3 JavaScript questions to watch out for during coding interviews
https://github.com/ggomaeng/awesome-js - A curated list of javascript fundamentals and algorithms
https://github.com/Chalarangelo/30-seconds-of-code - Curated collection of useful Javascript snippets that you can understand in 30 seconds or less.
https://medium.com/dev-bits/a-perfect-guide-for-cracking-a-javascript-interview-a-developers-perspective-23a5c0fa4d0d - A perfect guide for cracking a JavaScript interview - A developer’s perspective
https://github.com/yangshun/front-end-interview-handbook - Almost complete answers to "Front-end Job Interview Questions" which you can use to interview potential candidates, test yourself or completely ignore
https://medium.com/javascript-scene/master-the-javascript-interview-what-s-the-difference-between-class-prototypal-inheritance-e4cd0a7562e9 - Master the JavaScript Interview: What’s the Difference Between Class & Prototypal Inheritance?
https://medium.com/javascript-scene/master-the-javascript-interview-what-is-a-closure-b2f0d2152b36 - Master the JavaScript Interview: What is a Closure?
https://medium.com/javascript-scene/master-the-javascript-interview-what-is-function-composition-20dfb109a1a0 - Master the JavaScript Interview: What is Function Composition?
https://medium.com/javascript-scene/common-misconceptions-about-inheritance-in-javascript-d5d9bab29b0a - Common Misconceptions About Inheritance in JavaScript
https://dev.to/arnavaggarwal/10-javascript-concepts-you-need-to-know-for-interviews?utm_source=hashnode.com - 10 JavaScript concepts you need to know for interviews
https://hackernoon.com/a-quick-introduction-to-functional-javascript-7e6fe520e7fa - A Quick Introduction to Functional Javascript
https://github.com/ganqqwerty/123-Essential-JavaScript-Interview-Question - 123-Essential-JavaScript-Interview-Question
https://www.toptal.com/javascript/interview-questions - 37 Essential JavaScript Interview Questions
https://medium.com/coderbyte/a-tricky-javascript-interview-question-asked-by-google-and-amazon-48d212890703 - A Tricky JavaScript Interview Question Asked by Google and Amazon