Javascript Interview Questions 2022

Sai Kiran
2 min readSep 3, 2022

--

This is the second set of the javascript questions that I have faced in my frontend interviews. You can find the previous set of questions of javascript through this post

I have attended and taken several interview in my 5 years of career. So, there are set of common questions that are asked in the interviews as L1/base/beginner/foundation level JavaScript questions, you are expected to answer them in the initial stage of screening.

A note worth of reading and could improve the way you look at the following javascript questions.

Following are the questions that I was asked during my interviews but mugging up these question and answers DOESN’T make you a “developer” and will not help you while solving problems in the real-time. So, I haven’t posted any sort of answer down here.

Go through the javascript questions understand the underlying concept, play with the code, become a developer, crack the interviews and lay road for your future.

JavaScript

  1. What are the differences of Cookie, Local Storage and Session Storage with use cases (in-realtime).
  2. What is polyfill and promise and Write a polyfill for promise.all().
  3. What is a shallow copy and deep copy. In how many ways we can achieve it.
  4. Difference between Splice, Slice and Split.
  5. Use cases for Map, Reducer and foreach.
  6. What does freeze method do?
  7. What is tree-shaking?
  8. What is Hydration in javascript?
  9. How does Subscriber works?

Please do let me know if anything is missed in these, also share how did your interviews went in the comments.

--

--

Sai Kiran

Web Developer | javascript | react | vue | blockchain enthusiast | Lunar enthusiast