i
Coforge
Filter interviews by
I applied via Company Website and was interviewed in Oct 2024. There was 1 interview round.
Closure is a function that has access to its own scope, as well as the scope in which it was defined.
Closure allows a function to access variables from its outer function even after the outer function has finished executing.
It helps in maintaining state in asynchronous operations.
Example: function outerFunction() { let outerVar = 'I am outer'; return function innerFunction() { console.log(outerVar); }; }
Hooks in React are functions that let you use state and other React features without writing a class.
Hooks were introduced in React 16.8 to allow functional components to have state and lifecycle methods.
useState() is a hook that allows you to add state to functional components.
useEffect() is a hook that allows you to perform side effects in functional components.
Custom hooks are reusable functions that can contain log...
Basic questions on javascript
I applied via Naukri.com and was interviewed in Feb 2024. There were 3 interview rounds.
20 Aptitude questions, 30 React/HTML/CSS MCQs, 2 coding questions on an outdated compiler
Inline elements do not start on a new line and only take up as much width as necessary, while inline-block elements can have a width and height specified.
Inline elements do not start on a new line
Inline elements only take up as much width as necessary
Inline-block elements can have a width and height specified
Inline-block elements can have margins and paddings applied
Inline-block elements can have line breaks within the
Semantic HTML is the use of HTML elements that carry meaning and convey the structure of the content.
Semantic HTML helps improve accessibility and SEO.
It provides a clear and meaningful structure to the content.
Examples of semantic HTML elements include
I applied via Naukri.com and was interviewed in Feb 2022. There were 3 interview rounds.
I applied via Approached by Company and was interviewed in Feb 2022. There was 1 interview round.
To reverse a string in Javascript, we can use the built-in reverse() method.
Convert the string to an array using split() method
Use the reverse() method to reverse the array
Convert the reversed array back to a string using join() method
I applied via Recruitment Consultant and was interviewed in Sep 2021. There was 1 interview round.
Dependency injection is a design pattern that allows objects to receive dependencies rather than creating them internally.
It helps to decouple the code and makes it more testable.
It allows for easier maintenance and scalability.
It can be implemented using constructor injection, setter injection, or interface injection.
Example: Instead of creating a database connection object within a class, it can be passed as a depend
NgModule is a decorator that defines a module in Angular.
NgModule is used to group related components, directives, and services.
It helps to organize the application into smaller, manageable pieces.
It can import other modules and export its own components, directives, and services.
It can also provide configuration for dependency injection.
Example: @NgModule({ imports: [CommonModule], declarations: [AppComponent], export
Closure is a function that has access to variables in its outer scope, even after the outer function has returned.
A closure is created when a function is defined inside another function.
The inner function can access variables in the outer function, even after the outer function has returned.
Closures are commonly used to create private variables and functions in JavaScript.
Example: function outer() { var x = 10; functio...
Interview experience
based on 2 reviews
Rating in categories
Senior Software Engineer
4.9k
salaries
| ₹6.3 L/yr - ₹26 L/yr |
Technical Analyst
2.6k
salaries
| ₹9.4 L/yr - ₹38.4 L/yr |
Software Engineer
2k
salaries
| ₹2.2 L/yr - ₹9.5 L/yr |
Senior Test Engineer
1.8k
salaries
| ₹4.7 L/yr - ₹19.5 L/yr |
Technology Specialist
1.2k
salaries
| ₹11.9 L/yr - ₹42 L/yr |
Capgemini
Cognizant
Accenture
Infosys