NeoSOFT
10+ MiQ Digital Interview Questions and Answers
Q1. Ecmascript6 and latest updates with example
ES6 is the latest version of ECMAScript with new features like arrow functions, classes, and template literals.
Arrow functions provide a more concise syntax for writing functions.
Classes allow for easier object-oriented programming in JavaScript.
Template literals make it easier to work with strings by allowing interpolation and multiline strings.
Q2. Difference between useMemo and useCallback
useMemo is used for memoizing values, while useCallback is used for memoizing functions.
useMemo is used to memoize a value and only recompute it when its dependencies change.
useCallback is used to memoize a function instance and only re-create it when its dependencies change.
Example: useMemo can be used to memoize the result of a complex computation, while useCallback can be used to memoize a callback function passed to a child component.
Q3. What are semantic tags
Semantic tags are HTML tags that clearly define the content they contain for better accessibility and SEO.
Semantic tags provide meaning to the content they enclose, making it easier for search engines to understand the structure of the page.
Examples of semantic tags include
, Using semantic tags improves the accessibility of the website for users with disabilities, as screen readers can interpret the content more accurately.
Q4. What is promise chaining
Promise chaining is a technique in JavaScript where multiple asynchronous operations are chained together to execute sequentially.
Allows for handling multiple asynchronous operations in a more readable and organized way
Each promise in the chain returns a new promise, allowing for further chaining
Helps avoid callback hell by nesting promises inside each other
Example: promise1.then(result => { return promise2; }).then(result => { return promise3; })
Q5. What is redux in react
Redux is a predictable state container for JavaScript apps.
Redux is a state management tool commonly used with React to manage the application's state in a predictable way.
It helps in maintaining a single source of truth for the state of the entire application.
Redux follows a unidirectional data flow, making it easier to understand how data changes over time.
Actions are dispatched to update the state in Redux, and reducers specify how the state should change in response to th...read more
Q6. What are hooks in react
Hooks in React are functions that let you use state and other React features without writing a class.
Hooks were introduced in React 16.8.
They allow you to use state and other React features in functional components.
Some commonly used hooks are useState, useEffect, useContext, and useReducer.
Q7. what is progresive web app
Progressive web apps are web applications that provide a native app-like experience to users, with features like offline access and push notifications.
Progressive web apps use modern web capabilities to provide a user experience similar to native apps.
They are reliable, load quickly, and work offline.
They can be installed on the user's device and send push notifications.
Examples include Twitter Lite, Flipkart Lite, and Starbucks.
Q8. What is hoisting
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope during compilation.
Variable declarations are hoisted but not their initializations.
Function declarations are fully hoisted, meaning they can be called before they are declared.
Hoisting can lead to unexpected behavior if not understood properly.
Q9. What is virtual DOM
Virtual DOM is a lightweight copy of the actual DOM that React uses to improve performance by minimizing direct manipulation of the actual DOM.
Virtual DOM is a concept in React where a lightweight copy of the actual DOM is created and updated in memory.
When changes are made to the virtual DOM, React compares it with the actual DOM and only updates the necessary parts, reducing the number of direct manipulations to the actual DOM.
This process helps improve performance by minim...read more
Q10. Name the CSS positions
CSS positions include static, relative, absolute, fixed, and sticky.
Static - default position, elements are positioned according to the normal flow of the document
Relative - positioned relative to its normal position
Absolute - positioned relative to the nearest positioned ancestor
Fixed - positioned relative to the viewport
Sticky - acts like a combination of relative and fixed positioning
Q11. Synthetic events in react
Synthetic events in React are events that are normalized by React to ensure consistent behavior across different browsers.
Synthetic events are instances of the SyntheticEvent object in React.
They are cross-browser compatible and have the same interface as native events.
They are used to handle events like onClick, onChange, etc. in React components.
Example:
Q12. diff b/w type and interface
Type is used for defining custom data types in TypeScript, while interface is used for defining object shapes.
Type is more flexible and can be used to define unions, intersections, and primitive types.
Interface is more focused on defining the shape of an object and can be extended or implemented by other interfaces.
Type can also be used to create aliases for existing types, while interface cannot.
Example: type Person = { name: string, age: number } vs interface Person { name:...read more
Interview Process at MiQ Digital
Top React Js Frontend Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month