Filter interviews by
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.
Top trending discussions
posted on 8 Mar 2021
I applied via LinkedIn and was interviewed in Jun 2022. There was 1 interview round.
Dsa question were asked
Question related to profit loss
I appeared for an interview in Oct 2024, where I was asked the following questions.
React and Javascript
Coding test with technical discussion
I applied via Naukri.com and was interviewed in Feb 2022. There was 1 interview round.
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.
I applied via LinkedIn and was interviewed in Aug 2024. There was 1 interview round.
Event Loop is a mechanism in JavaScript that allows asynchronous operations to be executed in a non-blocking way.
Event Loop is responsible for handling the execution of code, callbacks, and I/O operations in JavaScript.
It continuously checks the call stack for any pending tasks and executes them in a sequential manner.
Event Loop ensures that the JavaScript engine is not blocked by long-running tasks, allowing for a smo...
Promises in JavaScript are objects representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle asynchronous operations in JavaScript.
They can be in one of three states: pending, fulfilled, or rejected.
Promises can be chained using .then() to handle success and .catch() to handle errors.
Example: const myPromise = new Promise((resolve, reject) => { ... });
based on 2 reviews
Rating in categories
Software Engineer
3.2k
salaries
| ₹4.2 L/yr - ₹13 L/yr |
Senior Software Engineer
2.1k
salaries
| ₹11.3 L/yr - ₹20.6 L/yr |
QA Engineer
1.1k
salaries
| ₹5 L/yr - ₹10.2 L/yr |
Senior QA Engineer
791
salaries
| ₹8.9 L/yr - ₹15.6 L/yr |
System Analyst
778
salaries
| ₹15.2 L/yr - ₹25.7 L/yr |
Mphasis
L&T Technology Services
Coforge
eClerx