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
I appeared for an interview in Feb 2025, where I was asked the following questions.
I applied via Company Website and was interviewed in May 2021. There were 3 interview rounds.
Redux is a predictable state container for JavaScript apps. It helps manage the state of an application in a more organized way.
Redux is a state management tool commonly used with React to manage the state of an application.
It follows a unidirectional data flow, where the state is stored in a single store.
Actions are dispatched to update the state, and reducers specify how the state should change in response to actions...
Context API is used in React to pass data through the component tree without having to pass props down manually at every level.
Avoids prop drilling by providing a way to share values like themes, user data, etc. across the component tree.
Helps in managing global state in React applications.
Context API consists of Provider and Consumer components to provide and consume the context data.
Can be used for theming, localizat
I applied via Recruitment Consulltant and was interviewed in Mar 2022. There was 1 interview round.
Hoisting is a JavaScript behavior where variable and function declarations are moved to the top of their containing scope.
Hoisting applies to both variable and function declarations.
Variable declarations are hoisted but not their initializations.
Function declarations are fully hoisted, allowing them to be called before they are declared.
Hoisting does not apply to variables declared with let or const.
Hoisting can lead t...
Higher-order functions are functions that take one or more functions as arguments or return a function as their result.
Higher-order functions can be used to create reusable code by abstracting common patterns.
They enable functional programming paradigms like currying and composition.
Examples of higher-order functions in JavaScript include map, filter, and reduce.
var is function scoped, let and const are block scoped.
var can be redeclared and updated within its scope
let can be updated but not redeclared within its scope
const cannot be updated or redeclared once declared
let and const are not hoisted like var
const must be initialized during declaration
Hooks are a feature in React.js that allow developers to use state and other React features in functional components.
Hooks are functions that let you use React features in functional components
They allow you to use state and other React features without writing a class
Hooks provide a way to reuse stateful logic between components
Some commonly used hooks are useState, useEffect, and useContext
I applied via Approached by Company and was interviewed in Apr 2022. There was 1 interview round.
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
Splice is used to add/remove elements from an array, while slice is used to extract a portion of an array without modifying the original array.
Splice modifies the original array, while slice does not.
Splice can add elements, remove elements, or replace elements in an array.
Slice returns a new array with the selected elements from the original array.
Example: const arr = [1, 2, 3, 4, 5]; arr.splice(2, 1); // removes elem...
To reverse a string, iterate through the characters and swap them from start to end.
Create an empty string to store the reversed result.
Iterate through the characters of the input string from end to start.
Append each character to the empty string to reverse the order.
Return the reversed string.
Some of the top questions asked at the NewFangled Vision Reactjs Developer interview -
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