Filter interviews by
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
DocType in HTML specifies the version of HTML being used in the document.
DocType declaration is not an HTML tag.
It is used to inform the web browser about the version of HTML being used.
It is placed at the very beginning of an HTML document before the <html> tag.
Example: <!DOCTYPE html> for HTML5.
Semantic elements are HTML tags that clearly define the content they contain, making it easier for both humans and machines to understand the structure of a web page.
Semantic elements provide meaning to the content they enclose, improving accessibility and SEO.
Examples include <header>, <footer>, <nav>, <article>, <section>, <aside>, <main>, <figure>, <figcaption>.
U...
Position properties in CSS for element placement.
Absolute: Element is positioned relative to its closest positioned ancestor.
Fixed: Element is positioned relative to the viewport.
Relative: Element is positioned relative to its normal position.
Find largest element, sum of all elements, and count of each element in array without sorting.
To find the largest element, iterate through the array and keep track of the maximum value.
To find the sum of all elements, iterate through the array and add each element to a running total.
To find the count of each element, use a hashmap to store the count of each element as you iterate through the array.
Using props and callbacks to communicate data from child to parent components in React.
Passing data from child to parent components using props
Using callbacks to send data from child to parent components
Using context API for global state management
Top trending discussions
React 16 introduced new features like React Fiber, Error Boundaries, Portals, and improved server-side rendering.
React Fiber is a new reconciliation engine that improves performance and enables incremental rendering.
Error Boundaries allow developers to catch and handle errors in components.
Portals provide a way to render children into a different DOM subtree.
Improved server-side rendering with support for streaming and...
React hooks simplify state management and lifecycle methods in functional components.
Hooks allow functional components to have state and lifecycle methods
They reduce the need for class components and HOCs
Hooks make code more readable and easier to test
Examples of hooks include useState, useEffect, and useContext
HOC components are higher-order components in React that allow code reuse and logic sharing.
HOC components are functions that take a component and return a new component with additional functionality.
They are used to abstract common logic and behaviors into reusable components.
HOC components can be used for tasks like authentication, logging, and code reuse.
Example: a withAuth HOC component that adds authentication log
A reducer is a pure function in React that takes the previous state and an action, and returns the new state.
Reducers are used in React to manage state changes in an application
They take the previous state and an action as input
Reducers are pure functions, meaning they do not modify the state directly
They return a new state based on the previous state and the action
Redux is a popular library that uses reducers to manag
New features of HTML5 and CSS positions include flexbox, grid layout, and sticky positioning.
Flexbox allows for easier alignment and distribution of items within a container.
Grid layout enables the creation of complex layouts with rows and columns.
Sticky positioning allows elements to stick to a specific position on the page as the user scrolls.
Spread operator is used to expand an iterable object into individual elements.
Used for passing props to child components
Used for merging arrays and objects
Syntax: ...
Example: const arr = [1, 2, 3]; const newArr = [...arr, 4, 5];
I applied via Recruitment Consulltant and was interviewed in Oct 2022. There were 3 interview rounds.
I applied via Company Website and was interviewed in May 2021. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Apr 2022. There was 1 interview round.
Closures and hoisting are important concepts in JavaScript.
Closures refer to the ability of a function to access variables in its outer scope even after the function has returned.
Hoisting is the behavior of moving variable and function declarations to the top of their respective scopes.
Example of closures: function outer() { let x = 10; function inner() { console.log(x); } return inner; } const innerFunc = outer(); inn...
I applied via Naukri.com and was interviewed in Aug 2021. There were 4 interview rounds.
To make a page responsive, use Bootstrap layouts and alerts.
Use Bootstrap's grid system to create responsive layouts
Use media queries to adjust the layout based on screen size
Use Bootstrap's responsive utility classes to hide/show elements on different devices
Use Bootstrap's responsive navigation components for mobile-friendly menus
Use Bootstrap's responsive images to ensure they scale properly
Use Bootstrap's responsiv...
Some of the top questions asked at the NewFangled Vision Reactjs Developer interview for freshers -
based on 1 interview
Interview experience
Software Developer
5
salaries
| ₹3.2 L/yr - ₹6 L/yr |
Software QA Engineer
4
salaries
| ₹2.2 L/yr - ₹3.6 L/yr |
TCS
Accenture
Wipro
Cognizant