Filter interviews by
I applied via Naukri.com and was interviewed before Sep 2021. There were 2 interview rounds.
let, var and const are all used to declare variables in JavaScript, but they differ in their scope and mutability.
let has block scope and can be reassigned
var has function scope and can be reassigned
const has block scope and cannot be reassigned, but its properties can be mutated
Higher order functions are functions that take other functions as arguments or return functions as their output.
Higher order functions can be used to create more flexible and reusable code.
They allow for functions to be composed and combined in various ways.
Examples of higher order functions include map, filter, and reduce in JavaScript.
Higher order functions can also be used for currying and partial application.
A calculator app built using React
Create a component for the calculator
Use state to keep track of the input and result
Implement functions for basic arithmetic operations
Add buttons for each number and operation
Display the input and result on the screen
Design a database schema for nested comments on a post
Create a table for posts with a unique ID
Create a table for comments with a unique ID, post ID, and parent comment ID
Use foreign keys to link comments to posts and parent comments
Use a recursive function to retrieve nested comments
Event loop is a mechanism in JavaScript that handles asynchronous operations.
Event loop continuously checks the call stack and the task queue.
If the call stack is empty, it takes the first task from the queue and pushes it to the call stack.
Event loop is responsible for handling callbacks and promises.
Event loop prevents blocking of the main thread.
Top trending discussions
posted on 23 Apr 2024
Middleware in Node.js is a function that has access to the request and response objects, and can modify or terminate the request-response cycle.
Middleware functions are executed sequentially in the order they are defined.
They can be used for tasks such as logging, authentication, error handling, etc.
Example: Express.js uses middleware extensively for handling requests.
posted on 23 Apr 2024
Middleware in Node.js is a function that has access to the request and response objects, and can modify or terminate the request-response cycle.
Middleware functions are executed sequentially in the order they are defined.
They can be used for tasks such as logging, authentication, error handling, etc.
Example: Express.js uses middleware extensively for handling requests.
I applied via Company Website and was interviewed in Apr 2022. There were 2 interview rounds.
Senior Software Engineer
5
salaries
| ₹4.8 L/yr - ₹7.3 L/yr |
Software Engineer
4
salaries
| ₹4.5 L/yr - ₹8 L/yr |
Software Developer
4
salaries
| ₹2.4 L/yr - ₹6 L/yr |
Technical Lead
3
salaries
| ₹9.6 L/yr - ₹15 L/yr |
IT Project Coordinator
3
salaries
| ₹4 L/yr - ₹4 L/yr |
Cognizant
Sutherland Global Services
Hexaware Technologies
Virtusa Consulting Services