Sitemap
Sunny

Sunny

Software Engineer | Tech Enthusiast

React & JavaScript Basic Interview Questions

2 min readSep 14, 2021

In this article, I will share some of the Basic JS & React Interview questions.

  1. What is DOM?
  2. What is virtual DOM in React, how does react handle virtual DOM, its impact & performance improvement?
  3. CSR, SSR.
  4. Constructor Function.
  5. Object Creation & Declaration ways.
  6. Difference between Class & Functional Component.
  7. Spread Operator.
  8. Usage of this keyword, this keyword in context, closure, scope, global, local.
  9. Closure.
  10. Prototype, Object Prototype, Usage of Prototype, How to create the prototype. How JS handles Prototype.
  11. Scope, local, global, function, method.
  12. Null, Blank, Undefined.
  13. String Concatenation in JS.
  14. Arrays: filter, reduce, map.
  15. Function calling in another function.
  16. Bind, how bind works, usage, impact.
  17. Hoisting.
  18. Promise
  19. Async Await.
  20. How to merge objects, object values using JS Logic.
  21. CallBack, callback hell.
  22. Dispatch.
  23. React State, Props, Components.
  24. React Routes.
  25. React Lifecycle Methods.
  26. API calls in React.
  27. React Hooks: UseState, UseEffect, UseRefs.
  28. Store Logging information.
  29. Hot Reload in react.
  30. How will you design any page, its full flow?
  31. Redux: Store, Usage of Redux, how the state is handled in redux, Action-Reducer, Root Reducers.
  32. Middleware, what is the use of middleware, can you create custom middleware.
  33. Connect, MapStateToProps, MapDispatchToProps.
  34. DIfference between TypeScript and JSX. TS files & JSX file.
  35. Interface in TypeScript.
  36. Caching implementation in React Application.
  37. Ways to improve performance of React Page Loading.
  38. How to handle the API calls, so that APIs for which new data is not needed is not called.
  39. APICallInterface.
  40. Fetch APIs.
  41. useStrict Keyword.
  42. Difference between Var, Let, Const.
  43. React-Redux Toolkit.
  44. How to get unique values from Array.
  45. Comparison Operator, == , ===, &&, &
  46. Map.Entries(), Usage, how it works.
  47. Linting, Babel,WebPack.
  48. Why isRedux State immutable.
  49. Memoize.
  50. What are the Redux Principles.
  51. .dispatch(), .getState()
  52. redux-thunk, redux-saga, redux-promise.
  53. useAxiosfetch().
  54. How will you create a Production-ready build, bundle.js, site.css.
  55. history object, usage.
  56. location object, usage.
  57. What is Anonymous Function, Usage, Impact?
  58. What are BOM, Usage, methods?
  59. Document Object, Usage, Methods.
  60. Cookies, How cookies are created, where are cookies stored.
  61. How to handle exceptions in JS.
  62. Different timer functions, usage, working, drawbacks.
  63. How does JS support automatic type conversion?
  64. Why it is not advised to use innerHTML in JS.
  65. Arrow Function.
  66. forEach.
  67. stopPropagation().
  68. Type Coersion
  69. Function in ES6.
  70. Context Vs Scope.
  71. Object.assign
  72. Super Clone, Shallow Clone, Object Clone.
  73. .bind(this) in ES6, the benefit of ‘this’ in Functional component.

Get Sunny’s stories in your inbox

Join Medium for free to get updates from this writer.

Important Links:

  1. https://reactjs.org/tutorial/tutorial.html
  2. https://redux.js.org/tutorials/essentials/part-1-overview-concepts
  3. https://javascript.info/
  4. https://www.javascripttutorial.net/
  5. Also, check for GeekForGeeks.

--

--

Sunny
Sunny

Written by Sunny

Software Engineer | Tech Enthusiast