Frontend Interview Preperation Guide
I created this repo to help engineers with their preparation for frontend interviews. Feel free to star/fork it for future reference.
Call for Help/Contribution
Feel free to raise PRs to enrich this repo with more questions (Don't forget to add placeholder for answer as well). Also most of the answers are yet to be added. Feel free to add them as well.
What is CORS? How does it work in browsers? What is preflight request
Answer To be added
Why do we need Redux? Why can't same thing be done by a global state?
Answer To be added
Explain how does virtual DOM works exactly
Answer To be added
What happens when you enter a URL in the browser?
Answer To be added
Apart from the task queue, what other queues are there in browser?
2, Render queue and microtask queue - for resolving promises.They do have a priority as well.
If we define a class in JS using arrow functions and without using class keyword, would it work?
Answer To be added
Describe ES6 features and properties.
Answer To be added
How does virtual DOM works in React? Talk about React Fibre, the reconciliation algorithm of react.
Answer To be added
What is event loop and how does it work?
For solution, refer to below links.
https://www.youtube.com/watch?v=cCOL7MC4Pl0
https://www.youtube.com/watch?v=8aGhZQkoFbQ
Difference between state and props
Answer To be added
Why we need key in react lists? What happens if we provide the index as the key ?
Answer To be added
How to improve performance of a web app
Answer To be added
What are controlled and uncontrolled inputs in React ?
Answer To be added
What is a closure? How can it be used ?
Answer To be added
Why do we need redux? Why can't we just use a global state?
Answer To be added
Event Propogation and Event bubbling?
Answer To be added
Difference between debouncing and throttling?
Answer To be added
Difference between call, apply and bind?
Answer To be added
What is async and await. What does a async function return?
Answer To be added
What is a Higher Order Component ? Give example and explain the use cases where it should be used.
Answer To be added
How to deep clone a object in javascript ?
Answer To be added
Implement a singleton class in Javascript.
Answer To be added
Lifecycle hooks of react with use of each hook?
Answer To be added
Does react component only update on state change or also on prop change ?
Answer To be added
How to start a new Angular project from cli ?
Answer To be added
Video tutorial links
Programming Questions