Skip to content

Instantly share code, notes, and snippets.

@Alex-Just
Last active October 8, 2018 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alex-Just/13567ac12d5c006859e30efbb810c9a3 to your computer and use it in GitHub Desktop.
Save Alex-Just/13567ac12d5c006859e30efbb810c9a3 to your computer and use it in GitHub Desktop.

GENERAL QUESTIONS

  1. What's faster: lookup a value in an array or in object keys?

  2. What's the easiest way of deduplicating an unordered array of numbers?

  3. Http requests. PUT vs PATCH vs POST

  4. git merge vs rebase

  5. How do you know if your API is RESTful?

  6. 3xx/4xx/5xx API error?

FRONTEND QUESTIONS:

  1. 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

  2. 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

  3. 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

  4. Why do you need to transpile JS? Will the ES6 code work in your browser without transpiling?

  5. 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.

  1. What are "refs" in React? When to use them? https://github.com/Pau1fitz/react-interview#what-are-refs-used-for-in-react

  2. 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment