Possible JavaScript Interview Questions for Developers

Eva Yi Zheng
3 min readSep 27, 2021

Technical interviews can be scary if you don’t prep ahead of time.

So how do you prep for a technical interview? Everyone has their own way to prep, so I will just mention how I prepped. Spoiler alert, I didn’t do a lot of prep.

When I started interviewing, I was still in bootcamp, so I was busy with learning and keeping up with my lessons and projects. Thus, I didn’t go straight into data structures and algorithms, which was apparent in one interview for an internship.

I felt like crap afterward. I thought it was a mistake to transition into tech. But I continued to work on my JavaScript fundamentals, and I landed an offer two months later, right when I was finishing up with the React/Redux portion of the bootcamp. Of course, DSA is important but so are the fundamentals, so this article will mostly list possible questions for JavaScript fundamentals.


Besides the book that is raved by almost every software engineer, Cracking the Coding Interview*, which mostly focuses on DSA, there are also simpler questions that focus on the fundamentals.

MDN is a great resource to use if you’re ever stuck with syntax or just want to see if a certain method already exists. This is my go-to resource and most of the answers to the possible questions can be found on MDN.

I also find myself using W3 Schools, although it’s usually for CSS.

There is always the OG site for JavaScript, which also has a resources section.

Forcing yourself to remember the answers is one way of doing it, but I’ve learned that in order to be able to better recall information, it’s best to learn it. It sounds simple enough, right?

There is no need to memorize things when search engines are just a click away, but learning something is helpful for interviews. Playing around with concepts in a sandbox environment is my go-to way of learning a new concept. Luckily, for JavaScript developers, you can also just use the browser as your sandbox!

Possible Questions

  1. What is the difference between undefined and null?
  2. What does the && operator do?
  3. What does the || operator do?
  4. Is using the + (unary plus operator) the fastest way in converting a string to a number?
  5. What is the DOM?
  6. What is event propagation?
  7. What is event bubbling?
  8. What is event capturing?
  9. What is the difference between event.preventDefault() and event.stopPropagaton() methods?
  10. How to know if the event.preventDefault() method was used in an element?
  11. What is event.target?
  12. What is event.currentTarget?
  13. What is the difference between == and ===?
  14. What does the !! operator do?
  15. How to evaluate multiple expressions in one line?
  16. What is hoisting?
  17. What is scope?
  18. What are closures?
  19. What are the falsy values in JavaScript?
  20. How to check if a value is falsy?
  21. What does use strict do?
  22. What’s the value of this in JavaScript?
  23. What is the prototype of an object?
  24. What are the new features in ES6?
  25. What is the difference between var, let, and const?
  26. What are arrow functions?
  27. What are classes?
  28. What are template literals?
  29. What is object destructuring?
  30. What are ES6 modules?
  31. What is the Set object and how does it work?
  32. What is a callback function?
  33. What is a promise?
  34. What is async/await?
  35. What is the difference between the spread operator and the rest operator?
  36. What are default parameters?
  37. What is AJAX?
  38. What are the ways of making objects in JavaScript?
  39. What is the difference between a function expression and a function declaration?
  40. What is the difference between the Object.seal() method and the Object.freeze() method?

The list of possible questions is endless and it’s okay if you don’t know how to answer a question. It’s always better to be honest than to lie or pretend.

If you want to prep for the behavioral interview, I have an article for that as well.

If you want to expand your knowledge, consider reading Free Coding Courses for Landing Your First Dev Job.

I also have articles on:

*affiliate link