Filter interviews by
Var, let, and const are used to declare variables in JavaScript.
Var is function-scoped and can be redeclared and updated.
Let is block-scoped and can be updated but not redeclared.
Const is block-scoped and cannot be updated or redeclared.
Lexical scope in JavaScript refers to the visibility of variables within a block of code based on where they are defined.
Variables are accessible within the block they are defined in, as well as any nested blocks.
Variables declared outside of a block are accessible within that block and any nested blocks.
Functions create their own scope, so variables defined within a function are only accessible within that function.
posted on 11 Dec 2024
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
Use the built-in reverse() method to reverse an array in JavaScript.
Use the reverse() method on the array to reverse its elements in place.
Example: let arr = ['apple', 'banana', 'cherry']; arr.reverse(); // ['cherry', 'banana', 'apple']
posted on 21 Oct 2024
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
Class components are ES6 classes that extend from React.Component and have a render method, while functional components are simple functions that return JSX.
Class components are more feature-rich and have access to lifecycle methods like componentDidMount, componentDidUpdate, etc.
Functional components are simpler and easier to read, especially for simple UI components.
Functional components can use React Hooks to manage...
A basic function component in React
Create a function component using the 'function' keyword
Return JSX elements within the component function
Example: const MyComponent = () => { return
Virtual DOM is a lightweight copy of the actual DOM that allows for efficient updates and rendering in web applications.
Virtual DOM is a concept used in frameworks like React to improve performance by minimizing direct manipulation of the actual DOM.
When changes are made to the virtual DOM, a comparison is done with the actual DOM to identify the minimal number of updates needed.
This approach reduces the number of DOM ...
Foreign key in SQL is a field in a table that is a primary key in another table, establishing a relationship between the two tables.
A foreign key constraint ensures referential integrity between two related tables.
It helps maintain consistency and avoid orphan records.
Example: In a database with tables 'orders' and 'customers', the 'customer_id' in 'orders' table can be a foreign key referencing the 'id' column in 'cus
Props are read-only properties that are passed from a parent component to a child component in React.
Props allow data to be passed down the component tree.
Props are immutable and cannot be changed by the child component.
Props are accessed in the child component using this.props.
posted on 23 Aug 2024
Error handling middleware is a function that processes errors in an Express application.
Error handling middleware is defined with four parameters: err, req, res, and next.
It is used to catch errors that occur during the execution of route handlers or other middleware functions.
It is typically defined at the end of the middleware chain with app.use() and has a signature like (err, req, res, next) => {...}.
Example: app.u...
Good one hour arrays linbklist strings
I would choose MongoDB for its flexibility and scalability in handling unstructured data.
MongoDB is a NoSQL database, making it easier to work with unstructured data compared to MySQL which is a relational database.
MongoDB is highly scalable and can handle large amounts of data and high traffic loads.
MongoDB is a good choice for applications that require frequent updates and real-time analytics.
MySQL is a better choice...
I applied via Company Website and was interviewed in Feb 2024. There was 1 interview round.
Oops,Function ,and basic concept of cloud
I applied via Campus Placement and was interviewed in Jul 2023. There were 2 interview rounds.
Software Developer
8
salaries
| ₹3.2 L/yr - ₹4.8 L/yr |
Junior Software Developer
5
salaries
| ₹3.6 L/yr - ₹4 L/yr |
Senior Team Leader
3
salaries
| ₹12.4 L/yr - ₹24 L/yr |
Senior Software Engineer
3
salaries
| ₹7.1 L/yr - ₹7.2 L/yr |
Tech Mahindra
Infosys
Wipro
TCS