GENERAL QUESTIONS
-
What's faster: lookup a value in an array or in object keys?
-
What's the easiest way of deduplicating an unordered array of numbers?
-
Http requests. PUT vs PATCH vs POST
-
git merge vs rebase
-
How do you know if your API is RESTful?
-
3xx/4xx/5xx API error?
FRONTEND QUESTIONS:
-
Explain how "this" works in JavaScript https://github.com/yangshun/front-end-interview-handbook/blob/master/questions/javascript-questions.md#explain-how-this-works-in-javascript
-
What is a closure, and how/why would you use one? https://github.com/yangshun/front-end-interview-handbook/blob/master/questions/javascript-questions.md#what-is-a-closure-and-howwhy-would-you-use-one
-
What are Promises? When to use them? https://github.com/yangshun/front-end-interview-handbook/blob/master/questions/javascript-questions.md#what-is-the-extent-of-your-experience-with-promises-andor-their-polyfills
-
Why do you need to transpile JS? Will the ES6 code work in your browser without transpiling?
-
What are the different phases of React component's lifecycle? https://github.com/Pau1fitz/react-interview#name-the-different-lifecycle-methods
Initial Rendering Phase: This is the phase when the component is about to start its life journey and make its way to the DOM.
Updating Phase: Once the component gets added to the DOM, it can potentially update and re-render only when a prop or state change occurs. That happens only in this phase.
Unmounting Phase: This is the final phase of a component's life cycle in which the component is destroyed and removed from the DOM.
-
What are "refs" in React? When to use them? https://github.com/Pau1fitz/react-interview#what-are-refs-used-for-in-react
-
What do you know about CSS-in-JS? What solutions have you used?
LIVE TEST TASK online IDE:
Given two arrays of URLs (fetchSequentially=[...] and fetchInParallel=[...]), create a function that would fetch items from the first one "one by one" and then items from the second one "all at the same time" and return a Promise object with results
HOME TASK:
Create an app (or just quickly sketch it => code only the essential parts and the file structure) that would query https://swapi.co/api/people/1/, render results in a table and allow to "walk-through" linked objects (making extra queries)