React & JavaScript Basic Interview Questions
2 min readSep 14, 2021
In this article, I will share some of the Basic JS & React Interview questions.
- What is DOM?
- What is virtual DOM in React, how does react handle virtual DOM, its impact & performance improvement?
- CSR, SSR.
- Constructor Function.
- Object Creation & Declaration ways.
- Difference between Class & Functional Component.
- Spread Operator.
- Usage of this keyword, this keyword in context, closure, scope, global, local.
- Closure.
- Prototype, Object Prototype, Usage of Prototype, How to create the prototype. How JS handles Prototype.
- Scope, local, global, function, method.
- Null, Blank, Undefined.
- String Concatenation in JS.
- Arrays: filter, reduce, map.
- Function calling in another function.
- Bind, how bind works, usage, impact.
- Hoisting.
- Promise
- Async Await.
- How to merge objects, object values using JS Logic.
- CallBack, callback hell.
- Dispatch.
- React State, Props, Components.
- React Routes.
- React Lifecycle Methods.
- API calls in React.
- React Hooks: UseState, UseEffect, UseRefs.
- Store Logging information.
- Hot Reload in react.
- How will you design any page, its full flow?
- Redux: Store, Usage of Redux, how the state is handled in redux, Action-Reducer, Root Reducers.
- Middleware, what is the use of middleware, can you create custom middleware.
- Connect, MapStateToProps, MapDispatchToProps.
- DIfference between TypeScript and JSX. TS files & JSX file.
- Interface in TypeScript.
- Caching implementation in React Application.
- Ways to improve performance of React Page Loading.
- How to handle the API calls, so that APIs for which new data is not needed is not called.
- APICallInterface.
- Fetch APIs.
- useStrict Keyword.
- Difference between Var, Let, Const.
- React-Redux Toolkit.
- How to get unique values from Array.
- Comparison Operator, == , ===, &&, &
- Map.Entries(), Usage, how it works.
- Linting, Babel,WebPack.
- Why isRedux State immutable.
- Memoize.
- What are the Redux Principles.
- .dispatch(), .getState()
- redux-thunk, redux-saga, redux-promise.
- useAxiosfetch().
- How will you create a Production-ready build, bundle.js, site.css.
- history object, usage.
- location object, usage.
- What is Anonymous Function, Usage, Impact?
- What are BOM, Usage, methods?
- Document Object, Usage, Methods.
- Cookies, How cookies are created, where are cookies stored.
- How to handle exceptions in JS.
- Different timer functions, usage, working, drawbacks.
- How does JS support automatic type conversion?
- Why it is not advised to use innerHTML in JS.
- Arrow Function.
- forEach.
- stopPropagation().
- Type Coersion
- Function in ES6.
- Context Vs Scope.
- Object.assign
- Super Clone, Shallow Clone, Object Clone.
- .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:








