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
- What are the differences of Cookie, Local Storage and Session Storage with use cases (in-realtime).
- What is polyfill and promise and Write a polyfill for promise.all().
- What is a shallow copy and deep copy. In how many ways we can achieve it.
- Difference between Splice, Slice and Split.
- Use cases for Map, Reducer and foreach.
- What does freeze method do?
- What is tree-shaking?
- What is Hydration in javascript?
- 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.