Filter interviews by
I applied via Approached by Company and was interviewed before May 2023. There was 1 interview round.
JS execution happens in two main phases: creation and execution.
During creation phase, variables are hoisted and memory space is allocated.
During execution phase, code is executed line by line.
JS uses a single-threaded, synchronous execution model.
Functions are first-class citizens in JS, allowing for higher-order functions and closures.
Event loop and callback queue are used for handling asynchronous operations.
Currying is a technique in JavaScript where a function with multiple arguments is transformed into a sequence of nested functions, each taking a single argument.
Currying helps in creating reusable functions and partial application.
It allows you to create new functions by pre-filling some of the arguments of an existing function.
Example: const add = (a) => (b) => a + b; const add5 = add(5); console.log(add5(3)); // Outp...
Lexical scope in JS determines the visibility of variables within a block of code based on where the variables are declared.
Variables are accessible within the block they are declared in and any nested blocks.
Variables declared outside of a block are accessible within that block and any nested blocks.
Example: function outerFunction() { let x = 10; function innerFunction() { console.log(x); } innerFunction(); } outerFun...
I applied via Campus Placement and was interviewed before May 2023. There was 1 interview round.
Top trending discussions
I applied via Naukri.com and was interviewed before Aug 2020. There were 4 interview rounds.
posted on 26 May 2022
I applied via Approached by Company and was interviewed before May 2021. There were 2 interview rounds.
based on 1 interview experience
Difficulty level
Duration
TCS
Accenture
Wipro
Cognizant