i
Prodapt
Filter interviews by
I applied via Company Website and was interviewed in Nov 2023. There were 2 interview rounds.
useState is a hook in React that allows functional components to have state.
useState is a built-in hook in React.
It allows functional components to have state.
It returns an array with two elements: the current state value and a function to update the state.
The initial state can be passed as an argument to useState.
The state can be of any data type, such as a string, number, boolean, or object.
Example: const [count, set
Closure is a feature in JavaScript that allows a function to access variables from its outer scope even after the function has finished executing.
Closure is created when a function is defined inside another function.
The inner function has access to the variables and parameters of the outer function.
The inner function forms a closure with the outer function, preserving the state of the outer function's variables.
Closure...
Props are read-only properties that are passed from a parent component to a child component in React.
Props allow data to be passed between components in a unidirectional flow.
Props are immutable and cannot be modified by the child component.
Props can be used to customize the behavior or appearance of a component.
Props are accessed using the 'this.props' syntax in class components or as function arguments in functional
Top trending discussions
I applied via Naukri.com and was interviewed in Oct 2023. There were 2 interview rounds.
Answers to common interview questions for Reactjs Developer position.
1. Life cycle methods in React include componentDidMount, componentDidUpdate, componentWillUnmount, etc.
2. 'var' has function scope, 'let' has block scope, 'const' is a constant variable.
3. Code to count duplicate characters in a string: const countDuplicates = (str) => { const count = {}; str.split('').forEach(char => { count[char] = count[char] ? co
I applied via Referral and was interviewed in Aug 2024. There were 2 interview rounds.
I applied via Naukri.com
Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope.
Variables declared with var are hoisted to the top of their scope
Function declarations are hoisted before variables
Function expressions are not hoisted
Let and const declarations are not hoisted
Promises are a way to handle asynchronous operations in JavaScript.
Promises represent a value that may not be available yet.
They have three states: pending, fulfilled, and rejected.
Promises can be chained using .then() and .catch() methods.
They help avoid callback hell and make code more readable.
Example: new Promise((resolve, reject) => { ... }).then(result => { ... }).catch(error => { ... })
ES6 features are modern JavaScript syntax and features that make code more concise and readable.
Arrow functions for concise function syntax
Template literals for easier string interpolation
Let and const for block-scoped variables
Destructuring for easily extracting values from objects and arrays
Spread and rest operators for easily manipulating arrays and objects
Classes for object-oriented programming
Modules for better co
Given an array of integers, return the sum of all even numbers.
Use Array.reduce() method to iterate over the array and sum the even numbers.
Use the modulo operator (%) to check if a number is even.
I applied via Naukri.com and was interviewed in Nov 2021. There was 1 interview round.
posted on 29 Dec 2021
I applied via LinkedIn and was interviewed in Nov 2021. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Aug 2023. There was 1 interview round.
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
Event loop is a mechanism in JavaScript that allows for asynchronous operations to be executed in a non-blocking way.
Event loop is responsible for handling asynchronous operations in JavaScript.
It allows for non-blocking execution of code by moving asynchronous tasks to the event queue.
Event loop continuously checks the call stack and the event queue, moving tasks from the queue to the stack when the stack is empty.
Exa...
Closures are functions that have access to their own scope, as well as the scope in which they were defined.
Closures allow functions to access variables from their outer scope even after the outer function has finished executing.
They are commonly used to create private variables in JavaScript.
Closures are created whenever a function is defined within another function.
based on 1 interview
Interview experience
Software Engineer
1.5k
salaries
| ₹2.6 L/yr - ₹9 L/yr |
Associate Software Engineer
885
salaries
| ₹2.4 L/yr - ₹5.5 L/yr |
Senior Software Engineer
843
salaries
| ₹4 L/yr - ₹15 L/yr |
Lead Engineer
472
salaries
| ₹6.9 L/yr - ₹23 L/yr |
Senior Process Associate
269
salaries
| ₹1.4 L/yr - ₹6 L/yr |
ITC Infotech
3i Infotech
Cybage
Xoriant