Filter interviews by
Top trending discussions
I applied via Referral and was interviewed in Mar 2024. There was 1 interview round.
const, let, and var are used to declare variables in JavaScript, but they have different scopes and behaviors.
const: used for variables that should not be reassigned, but the value can still be mutated (e.g. object properties)
let: used for variables that can be reassigned within their scope
var: function-scoped variable declaration, can be reassigned and hoisted
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope during compilation.
Variable declarations are hoisted but not their initializations.
Function declarations are fully hoisted, meaning they can be called before they are declared.
Hoisting can lead to unexpected behavior if not understood properly.
Closures in JavaScript are functions that have access to variables from their outer scope even after the outer function has finished executing.
Closures allow functions to access variables from their parent function even after the parent function has returned.
They help in creating private variables and data encapsulation.
Closures are commonly used in event handlers, callbacks, and in creating modules.
Example: function o...
To check for duplicate strings in an array, use a Set data structure. To remove duplicates, convert the array to a Set and then back to an array.
Create a Set from the array to automatically remove duplicates
Check if the size of the Set is equal to the size of the original array to determine if there are duplicates
Convert the Set back to an array to get the array without duplicates
Primitives in JavaScript are data types that are not objects and do not have methods.
Primitives include strings, numbers, booleans, null, and undefined.
They are immutable and passed by value.
Examples: 'hello', 42, true, null, undefined.
I applied via Referral and was interviewed in Feb 2024. There were 2 interview rounds.
1 hour asked basic questions
Interview experience
Senior Marketing Executive
8
salaries
| ₹3.4 L/yr - ₹4.3 L/yr |
Sales Officer
6
salaries
| ₹2.5 L/yr - ₹4.4 L/yr |
Sales Executive
5
salaries
| ₹2.6 L/yr - ₹4.5 L/yr |
Sales Representative
5
salaries
| ₹1.6 L/yr - ₹3.6 L/yr |
Assistant Manager
4
salaries
| ₹4.5 L/yr - ₹7 L/yr |
ITC
Godrej Industries Group
Tata Group
Reliance Industries